Posted about 9 years ago. Visible to the public.

Force reinstall of all Ubuntu packages

From http://ubuntuforums.org/showthread.php?t=735693 Archive

  1. sudo apt-get clean
  2. paste below into reinstall_all.sh
Copy
\#\!/bin/bash for pkg in `dpkg --get-selections | awk '{print $1}' | egrep -v '(dpkg|apt|mysql|mythtv)'` ; do apt-get -y --force-yes install --reinstall $pkg ; done
  1. sudo chown root:root reinstall_all.sh
  2. sudo chmod 755 reinstall_all.sh
  3. sudo ./reinstall_all.sh

Owner of this card:

Avatar
Ian Harris
2235
Last edit:
about 9 years ago
Tags:
ubuntu
Posted by Ian Harris to Recruitbot
This website uses short-lived cookies to improve usability.
Accept or learn more