7

When running the command sudo apt update I get the following problems that bothers me a lot:

$ sudo apt update

Hit:1 http://repo.mysql.com/apt/ubuntu eoan InRelease
Hit:2 https://deb.debian.org/debian buster InRelease
Ign:3 http://ppa.launchpad.net/morphis/anbox-support/ubuntu hirsute InRelease Hit:4 https://deb.debian.org/debian-security buster/updates InRelease Hit:5 https://download.sublimetext.com apt/stable/ InRelease
Ign:6 https://storage.googleapis.com/cros-packages/88 buster InRelease Err:7 http://ppa.launchpad.net/morphis/anbox-support/ubuntu hirsute Release 404 Not Found [IP: 91.189.95.85 80] Hit:8 https://storage.googleapis.com/cros-packages/88 buster Release Reading package lists... Done E: The repository 'http://ppa.launchpad.net/morphis/anbox-support/ubuntu hirsute Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

When trying to use sudo apt autoremove I get the following result:

$ sudo apt autoremove
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Zanna
  • 72,312

1 Answers1

5

You need to edit your /etc/apt/sources.list and remove all the useless repositories you have in it. You have lines for two different and incompatible Ubuntu releases, Debian buster which is incompatible with both of those and the third party repositories who knows if compatible, I am not going to check. The file is a mess and will never produce a stable system. The third party sources can be in your /etc/apt/sources.d/ directory the location for them third party installed sources. Comment out the lines in those files by putting a # at the start of the lines that do not have one or removing the file completely, then apt update to have it re-read and update the package cache.