0

I have Ubuntu MATE 20.04 installed in my computer. Somehow now apt is absolutely broken. Every package doesn't have an installation candidate.

Even worse, I can't download any package at all with Synaptic or aptitude. /etc/apt/sources.list seems perfectly fine.

Synaptic view.

APT error (in Spanish)

[sudo] password for disablegraphics:  
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package fluid is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only  
available from another source  

E: Package 'fluid' has no installation candidate
disablegraphics@disablegraphics:~$ update-manager
Traceback (most recent call last):
  File "/usr/bin/update-manager", line 28, in <module>
    import gi
ModuleNotFoundError: no module named 'gi'

Sources.list part 1:

Sources.list (part 1)

Sources.list part 2:

Sources.list (part 2)

karel
  • 114,770
  • What did you do between when it worked and now? – Organic Marble Jun 10 '20 at 21:42
  • See https://unix.stackexchange.com/questions/140119/every-package-has-no-installation-candidate – Ollie Jun 10 '20 at 21:42
  • Note: The update-manager command in the question starts the Software Updater app, and if there are any error messages when running this app it prints them in the terminal. link Please use only sudo apt update to refresh the list of available software and sudo apt upgrade to update software until you have solved this problem. – karel Jun 11 '20 at 02:40
  • What happens if you type sudo apt install aptitude? If it installs successfully, run aptitude without any extra parameters, and see what happens. Assuming it installs successfully, it *should* give you some information about what the problem is, and make suggestions on how to fix it. – TSJNachos117 Jun 11 '20 at 03:45
  • @TSJNachos117 Installing aptitude won't help to solve this problem because the software sources are incorrect. – karel Jun 11 '20 at 10:55
  • Perhaps if you backup /etc/apt/sources.list, and and change all instances of *.old-releases.ubuntu.com, with ubuntu.com (remove the ".old-releases" part), and run sudo apt update, that might fix your problems. It might also make your problems worse, so make ABSOLUTELY CERTAIN* you make a backup copy of that file before modifying it. You might also be able to use software-manager-gtk or software-manager-qt to change mirrors graphically. – TSJNachos117 Jul 19 '20 at 06:31

0 Answers0