run this command to remove broken packages in ubuntu.
sudo dpkg --remove --force-remove-reinstreq package_name
after removing package update your system with command
sudo apt-get update
run this command to remove broken packages in ubuntu.
sudo dpkg --remove --force-remove-reinstreq package_name
after removing package update your system with command
sudo apt-get update
After trying
sudo apt-get update –fix-missing
and
sudo dpkg –configure -a
and
sudo apt-get install -f
the problem of a broken package still exists the solution is to edit the dpkg status file manually.
———–
Unlock the dpkg – (message /var/lib/dpkg/lock)
sudo fuser -vki /var/lib/dpkg/lock
sudo dpkg –configure -a
You can delete the lock file with the following command:
sudo rm /var/lib/apt/lists/lock
You may also need to delete the lock file in the cache directory
sudo rm /var/cache/apt/archives/lock
I had this issue just now. What I did was purge the errant package using dpkg in my case then update and force the reinstall:
sudo dpkg --purge linux-image-3.13.0-35-generic
sudo apt-get update
sudo apt-get -f install
Simple:
grep ^Package: /var/lib/apt/lists/ppa.launchpad.net_*_Packages
Or more flexible:
grep-dctrl -sPackage . /var/lib/apt/lists/ppa.launchpad.net_*_Packages
For fancier querying, use apt-cache policy and aptitude as described here:
aptitude search '~O LP-PPA-gstreamer-developers'
Execute:
sudo systemctl stop apt-daily.timer