Differences

This shows you the differences between two versions of the page.

Link to this comparison view

community:correcting_broken_packages [2018/10/16 21:45]
psud0nym created transferred and modified for wiki
community:correcting_broken_packages [2018/10/16 22:00] (current)
psud0nym
Line 1: Line 1:
 +====== Correcting Broken Packages ======
 +
 For these first two steps, many people have better results with ‘aptitude’ finding a resolution. For these first two steps, many people have better results with ‘aptitude’ finding a resolution.
 This command may help, but it is not installed by default in Devuan. If you recall it and install it after the broken package situation is resolved, it is worth trying. This command may help, but it is not installed by default in Devuan. If you recall it and install it after the broken package situation is resolved, it is worth trying.
-*PACKAGE is meant to be a package name that is broken. Replace a package name when using the commands. 
  
-Step one:+***PACKAGE* ** is meant to be a package name that is broken. Replace a package name when using the commands. 
 + 
 +=== Step one: === 
      sudo apt-get update –fix-missing      sudo apt-get update –fix-missing
      sudo dpkg –configure -a      sudo dpkg –configure -a
      sudo apt-get install -f      sudo apt-get install -f
  
-Step two:+=== Step two: === 
      sudo dpkg --configure -a      sudo dpkg --configure -a
      sudo apt-get clean      sudo apt-get clean
Line 17: Line 22:
      sudo rm /​var/​lib/​apt/​lists/​lock      sudo rm /​var/​lib/​apt/​lists/​lock
  
-Step three:+=== Step three: ​=== 
 + 
      sudo apt-get remove PACKAGE      sudo apt-get remove PACKAGE
  
Line 34: Line 41:
 After that, try to install the package from scratch. It should install normally now. After that, try to install the package from scratch. It should install normally now.
  
-Last try step:+=== Last try step: === 
 This pair of commands will remove the packages scripts to be performed before and after installation/​removal of a package, then remove it from the database of installed packages. ​ This pair of commands will remove the packages scripts to be performed before and after installation/​removal of a package, then remove it from the database of installed packages. ​
      mv /​var/​lib/​dpkg/​info/​PACKAGE.* /tmp/      mv /​var/​lib/​dpkg/​info/​PACKAGE.* /tmp/