Score:1

can't apt update ubuntu 20.04

cn flag

For a while now, I have been unable to successfully run sudo apt update on my install of ubuntu 20.04.

For example, the output is like this

Ign:1 http://ppa.launchpad.net/bluetooth/bluez/ubuntu focal InRelease
Hit:2 http://packages.microsoft.com/repos/code stable InRelease                                    
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease                                             
Get:4 https://cli.github.com/packages stable InRelease [3917 B]                                    
Hit:5 https://download.docker.com/linux/ubuntu focal InRelease                                     
Hit:6 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease                               
Get:7 http://archive.canonical.com/ubuntu focal InRelease [12.1 kB]                                
Hit:8 http://archive.ubuntu.com/ubuntu focal-updates InRelease                                     
Get:9 http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal  InRelease [1553 B]
Hit:10 http://archive.ubuntu.com/ubuntu focal-security InRelease                                   
Hit:11 https://download.vscodium.com/debs vscodium InRelease                                       
Hit:12 https://packages.microsoft.com/repos/ms-teams stable InRelease                              
Hit:13 http://archive.ubuntu.com/ubuntu focal-backports InRelease                         
Ign:14 http://ppa.launchpad.net/doctormo/wacom-plus/ubuntu focal InRelease
Err:4 https://cli.github.com/packages stable InRelease                     
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
Ign:15 https://github.com/retorquere/zotero-deb/releases/download/apt-get ./ InRelease
Ign:16 http://ppa.launchpad.net/fossfreedom/byzanz/ubuntu focal InRelease  
Err:17 https://github.com/retorquere/zotero-deb/releases/download/apt-get ./ Release
  404  Not Found [IP: 140.82.112.3 443]
Hit:18 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu focal InRelease      
Ign:19 http://ppa.launchpad.net/gloobus-dev/gloobus-preview/ubuntu focal InRelease
Get:20 http://archive.canonical.com/ubuntu focal/partner Sources [716 B]
Get:21 http://archive.canonical.com/ubuntu focal/partner amd64 Packages [856 B]                   
Get:22 http://archive.canonical.com/ubuntu focal/partner Translation-en [384 B]
Hit:23 http://ppa.launchpad.net/jeremysanders/ppa/ubuntu focal InRelease
Hit:24 http://ppa.launchpad.net/kdenlive/kdenlive-stable/ubuntu focal InRelease
Err:9 http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal  InRelease
  The following signatures were invalid: EXPKEYSIG 02456C79B2FD48BF home:ungoogled_chromium OBS Project <home:ungoogled_chromium@build.opensuse.org>
Ign:25 http://ppa.launchpad.net/lekensteyn/wacom-tablet/ubuntu focal InRelease
Hit:26 http://ppa.launchpad.net/linuxuprising/apps/ubuntu focal InRelease
Hit:27 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu focal InRelease
Err:28 http://ppa.launchpad.net/bluetooth/bluez/ubuntu focal Release
  404  Not Found [IP: 185.125.190.52 80]
Err:29 http://ppa.launchpad.net/doctormo/wacom-plus/ubuntu focal Release
  404  Not Found [IP: 185.125.190.52 80]
Err:30 http://ppa.launchpad.net/fossfreedom/byzanz/ubuntu focal Release
  404  Not Found [IP: 185.125.190.52 80]
Err:31 http://ppa.launchpad.net/gloobus-dev/gloobus-preview/ubuntu focal Release
  404  Not Found [IP: 185.125.190.52 80]
Err:32 http://ppa.launchpad.net/lekensteyn/wacom-tablet/ubuntu focal Release
  404  Not Found [IP: 185.125.190.52 80]
Reading package lists... Done                        
W: GPG error: https://cli.github.com/packages stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
E: The repository 'https://cli.github.com/packages stable InRelease' is not signed.
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.
E: The repository 'https://github.com/retorquere/zotero-deb/releases/download/apt-get ./ 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.
W: GPG error: http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal  InRelease: The following signatures were invalid: EXPKEYSIG 02456C79B2FD48BF home:ungoogled_chromium OBS Project <home:ungoogled_chromium@build.opensuse.org>
E: The repository 'http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal  InRelease' is not signed.
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.
E: The repository 'http://ppa.launchpad.net/bluetooth/bluez/ubuntu focal 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.
E: The repository 'http://ppa.launchpad.net/doctormo/wacom-plus/ubuntu focal 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.
E: The repository 'http://ppa.launchpad.net/fossfreedom/byzanz/ubuntu focal 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.
E: The repository 'http://ppa.launchpad.net/gloobus-dev/gloobus-preview/ubuntu focal 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.
E: The repository 'http://ppa.launchpad.net/lekensteyn/wacom-tablet/ubuntu focal 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.
(base) ➜  ~ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(base) ➜  ~ sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
(base) ➜  ~ sudo sed -i -e 's/archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
(base) ➜  ~ sudo apt-get update
Get:1 https://cli.github.com/packages stable InRelease [3917 B]
Hit:2 https://download.docker.com/linux/ubuntu focal InRelease                                     
Ign:3 http://ppa.launchpad.net/bluetooth/bluez/ubuntu focal InRelease                              
Err:1 https://cli.github.com/packages stable InRelease                                             
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
Hit:4 http://archive.canonical.com/ubuntu focal InRelease                                          
Hit:5 http://packages.microsoft.com/repos/code stable InRelease                                    
Ign:6 http://old-releases.ubuntu.com/ubuntu focal InRelease                                        
Hit:7 https://download.vscodium.com/debs vscodium InRelease                                        
Hit:8 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease                               
Ign:9 http://old-releases.ubuntu.com/ubuntu focal-updates InRelease                                
Hit:10 https://packages.microsoft.com/repos/ms-teams stable InRelease                              
Ign:11 http://old-releases.ubuntu.com/ubuntu focal-security InRelease                              
Ign:12 http://ppa.launchpad.net/doctormo/wacom-plus/ubuntu focal InRelease                         
Ign:13 https://github.com/retorquere/zotero-deb/releases/download/apt-get ./ InRelease             
Ign:14 http://old-releases.ubuntu.com/ubuntu focal-backports InRelease                             
Err:15 http://old-releases.ubuntu.com/ubuntu focal Release                                         
  404  Not Found [IP: 185.125.190.40 80]
Get:16 http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal  InRelease [1553 B]
Err:17 https://github.com/retorquere/zotero-deb/releases/download/apt-get ./ Release               
  404  Not Found [IP: 140.82.114.4 443]
Err:18 http://old-releases.ubuntu.com/ubuntu focal-updates Release  
  404  Not Found [IP: 185.125.190.40 80]
Ign:19 http://ppa.launchpad.net/fossfreedom/byzanz/ubuntu focal InRelease
Err:20 http://old-releases.ubuntu.com/ubuntu focal-security Release        
  404  Not Found [IP: 185.125.190.40 80]
Err:21 http://old-releases.ubuntu.com/ubuntu focal-backports Release       
  404  Not Found [IP: 185.125.190.40 80]
Hit:22 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu focal InRelease
Ign:23 http://ppa.launchpad.net/gloobus-dev/gloobus-preview/ubuntu focal InRelease
Hit:24 http://ppa.launchpad.net/jeremysanders/ppa/ubuntu focal InRelease
Hit:25 http://ppa.launchpad.net/kdenlive/kdenlive-stable/ubuntu focal InRelease
Err:16 http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal  InRelease
  The following signatures were invalid: EXPKEYSIG 02456C79B2FD48BF home:ungoogled_chromium OBS Project <home:ungoogled_chromium@build.opensuse.org>
Ign:26 http://ppa.launchpad.net/lekensteyn/wacom-tablet/ubuntu focal InRelease
Hit:27 http://ppa.launchpad.net/linuxuprising/apps/ubuntu focal InRelease
Hit:28 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu focal InRelease
Err:29 http://ppa.launchpad.net/bluetooth/bluez/ubuntu focal Release
  404  Not Found [IP: 185.125.190.52 80]
Err:30 http://ppa.launchpad.net/doctormo/wacom-plus/ubuntu focal Release
  404  Not Found [IP: 185.125.190.52 80]
Err:31 http://ppa.launchpad.net/fossfreedom/byzanz/ubuntu focal Release
  404  Not Found [IP: 185.125.190.52 80]
Err:32 http://ppa.launchpad.net/gloobus-dev/gloobus-preview/ubuntu focal Release
  404  Not Found [IP: 185.125.190.52 80]
Err:33 http://ppa.launchpad.net/lekensteyn/wacom-tablet/ubuntu focal Release
  404  Not Found [IP: 185.125.190.52 80]
Reading package lists... Done                        
W: GPG error: https://cli.github.com/packages stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
E: The repository 'https://cli.github.com/packages stable InRelease' is not signed.
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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu focal 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.
E: The repository 'https://github.com/retorquere/zotero-deb/releases/download/apt-get ./ 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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu focal-updates 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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu focal-security 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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu focal-backports 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.
W: GPG error: http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal  InRelease: The following signatures were invalid: EXPKEYSIG 02456C79B2FD48BF home:ungoogled_chromium OBS Project <home:ungoogled_chromium@build.opensuse.org>
E: The repository 'http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal  InRelease' is not signed.
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.
E: The repository 'http://ppa.launchpad.net/bluetooth/bluez/ubuntu focal 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.
E: The repository 'http://ppa.launchpad.net/doctormo/wacom-plus/ubuntu focal 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.
E: The repository 'http://ppa.launchpad.net/fossfreedom/byzanz/ubuntu focal 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.
E: The repository 'http://ppa.launchpad.net/gloobus-dev/gloobus-preview/ubuntu focal 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.
E: The repository 'http://ppa.launchpad.net/lekensteyn/wacom-tablet/ubuntu focal 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.

and, using the GUI app "Software & Updates", I get a huge error message like this error message

when I try to close the app and save my settings, no matter what repositories or server I select.

I have tried changing my /etc/apt/sources.list to the default one as well as running standard commands suggested such as sudo apt update && sudo apt autoremove && sudo apt --fix-broken install && sudo apt upgrade

The problem seems to be something deeper... Has anyone got any ideas? Thanks.

Pilot6 avatar
cn flag
You have crap in `/etc/apt/sources.list`. Delete it, run Software & Updates and enable default repos there.
gannex avatar
cn flag
As I mentioned in my question, I tried restoring /etc/apt/sources.list to default. I did this in various ways, as suggested in answers to other questions, but one example is "sudo cp /usr/share/doc/apt/examples/sources.list /etc/apt/sources.list"
gannex avatar
cn flag
Also just tried straight "sudo rm /etc/apt/sources.list". It removed the checkmarks from "Software & Updates". I enabled the default repos there and tried to save settings, and I just got the same error shown in my screencap
Pilot6 avatar
cn flag
You have some crap also in Other sources too. You can remove it. You have outdated PPAs, etc.
gannex avatar
cn flag
OK point taken about the messed up system. I have probably done many things wrong over the years in the struggle to get software to install. I will re-install when I upgrade to 22.04. Meanwhile, is there any easy way to remove these non-official PPAs?
gannex avatar
cn flag
Should I just be deleting stuff from /etc/apt/sources.list.d?
gannex avatar
cn flag
removing stuff from /etc/apt/sources.list.d fixes it
Nmath avatar
ng flag
See [How can PPAs be removed?](https://askubuntu.com/q/307)
Score:1
cn flag

Simply removing /etc/apt/sources.list is not always sufficient to solve this problem because there are additional files from unofficial PPAs stored in the directory /etc/apt/sources.list.d

I removed .list and .list.save files from /etc/apt/sources.list.d until sudo apt-get update succeeded.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.