PDA

View Full Version : [ubuntu] Ubuntu Won't update-says packages broken, but won't fix



jwjones1979
March 25th, 2019, 04:21 AM
I typed sudo apt upgrade and got this:
https://paste.ubuntu.com/p/Gjcz8hQkTw/

Then I typed sudo apt --fix-broken install and got this:
https://paste.ubuntu.com/p/YvyC9xpFcG/

what did I do wrong and how do I fix it?

again?
March 25th, 2019, 04:38 AM
Post the output of...

lsb_release -a
and

sudo apt update

Have you installed or removed anything recently?

jwjones1979
March 25th, 2019, 07:14 PM
No, I just routinely update when I can.

lsb_release -a:
https://paste.ubuntu.com/p/ChR8CXBgXb/
sudo apt update:
https://paste.ubuntu.com/p/CgWtw3mXCv/

again?
March 26th, 2019, 01:50 AM
Not sure what the exact error is.
The klaus-vormweg/bluefish ppa doesn't have a package for cosmic so that can be disabled.

Try disabling all third party repositories...

software-properties-gtk --open-tab 1
and then...


sudo apt clean
sudo apt update

Still errors, try renewing your package lists...

sudo rm -r /var/lib/apt/lists/
sudo apt update

jwjones1979
March 26th, 2019, 04:15 PM
I did both of those, and this is what I got:

https://paste.ubuntu.com/p/z9sRnzwdqB/

And how do you get that code box?

deadflowr
March 26th, 2019, 06:48 PM
And how do you get that code box?
https://ubuntuforums.org/showthread.php?t=2171721&p=12776168#post12776168

Impavidus
March 26th, 2019, 07:42 PM
You can get the code box by using
code tags.

apt reports a lot of missing dependencies. apt even reports that apt is missing. I don't believe those packages are really missing. Many of those are essential, without which you wouldn't have a functional system. So, the database of installed packages is really messed up. Furthermore, you get input/output errors when apt tries to read the list of installed software, which indicates a filesystem problem. A filesystem check may help, but I wouldn't trust the list of installed packages even after you try to fix the filesystem. A filesystem check makes the filesystem consistent, but may not restore every file to the state that it's supposed to be in.

In fact, I don't trust your hard drive.

Boot from a live disk and make sure you have current backups of all your important files on an external drive. You're supposed to have such backups anyway, but check again. Run filesystem checks and check the health of your hard drive. If the filesystem check doesn't fix your problem (which I doubt it will), reinstall (or restore your entire system from a backup, if you have one). If the hard drive doesn't look healthy, get a new hard drive and reinstall.

https://help.ubuntu.com/community/FilesystemTroubleshooting
https://help.ubuntu.com/community/Smartmontools

again?
March 27th, 2019, 01:02 AM
Can you also post the ouptut from...

ls -al /var/lib/apt/lists/*

jwjones1979
March 27th, 2019, 06:53 PM
Impavidus (https://ubuntuforums.org/member.php?u=1417721)

If all else fails, that's exactly what I'll do. Let's hope it doesn't come to that.

guber2 (https://ubuntuforums.org/member.php?u=2063040)

https://paste.ubuntu.com/p/ZKQxWvtdDr/