This should provide you with a quick fix. It makes a couple of assumptions such as, that you've attempted to install libjpeg-progs and it's failed. Basically it goes and grabs the package from your cache, extracts out the package, changes the control file to allow it to resolve the conflict and changes the version number (appends this bug report number to it), bundles it back up into a package and then installs the package. It's also untested and assumes you don't have packages in your home folder (libjpeg-progs).
#!/bin/bash mkdir ~/libjpeg-progs cp /var/cache/apt/archives/libjpeg-progs* ~/libjpeg-progs cd ~/libjpeg-progs ar x libjpeg-progs*.deb rm libjpeg-progs*.deb debian-binary tar xvf data.tar.* && rm data.tar.* tar xvf control.tar.* --directory DEBIAN && rm control.tar.* cd DEBIAN if [ -z "$( grep "^Replaces:" control )" ] ; then sed '/^Version:/ iReplaces: libjpeg-turbo-progs' control -i else sed 's/\(^Replaces: .*\)/\1, libjpeg-turbo-progs/' control -i fi sed 's/\(^Version: .*\)/\1-1550124/' control -i cd ~ dpkg -b libjpeg-progs . sudo dpkg -i libjpeg-progs*.deb -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1550124 Title: package libjpeg-progs 8c-2ubuntu8 failed to install/upgrade: trying to overwrite '/usr/bin/rdjpgcom', which is also in package libjpeg-turbo- progs 1.4.2-0ubuntu1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libjpeg8-empty/+bug/1550124/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
