无法更新 ubuntu 18.04,我认为问题出在 sources.list 文件中

无法更新 ubuntu 18.04,我认为问题出在 sources.list 文件中

我无法更新 Ubuntu 18.04,我认为问题出在 sources.list 文件中,但我无法解决它;

sudo apt-get update不起作用,

以下是 sudo apt-get update 的结果:

brucewayne@Notebook:~$ sudo apt-get update

Hit:1 http://linux.teamviewer.com/deb stable InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu bionic InRelease                                                                           
Hit:3 https://brave-browser-apt-release.s3.brave.com stable InRelease                                                                
Get:4 http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid InRelease [3,956 B]                               
Hit:5 http://in.archive.ubuntu.com/ubuntu bionic-security InRelease                                                                  
Hit:6 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                   
Ign:7 http://ppa.launchpad.net/cassou/emacs/ubuntu bionic InRelease                                                                  
Hit:8 http://dl.google.com/linux/chrome/deb stable InRelease                                                                         
Err:4 http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid InRelease                                         
  The following signatures were invalid: EXPKEYSIG CDFB5FA52007B954 Metasploit <[email protected]>
Hit:10 https://packages.microsoft.com/repos/ms-teams stable InRelease                                                                
Hit:11 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic InRelease                                            
Err:9 http://www.getdeb.net/ubuntu xenial-getdeb InRelease                                                                           
  403  Forbidden [IP: 143.95.32.90 80]
Hit:12 https://repo.skype.com/deb stable InRelease                                                                                   
Hit:13 http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu bionic InRelease                                                          
Ign:14 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu bionic InRelease                                                              
Err:16 http://ppa.launchpad.net/cassou/emacs/ubuntu bionic Release                                                                   
  404  Not Found [IP: 91.189.95.83 80]
Err:17 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu bionic Release                                                  
  404  Not Found [IP: 91.189.95.83 80]
Hit:15 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease                                         
Hit:18 https://download.sublimetext.com apt/stable/ InRelease                         
Reading package lists... Done 
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid InRelease: The following signatures were invalid: EXPKEYSIG CDFB5FA52007B954 Metasploit <[email protected]>
E: Failed to fetch http://archive.getdeb.net/ubuntu/dists/xenial-getdeb/InRelease  403  Forbidden [IP: 143.95.32.90 80]
E: The repository 'http://archive.getdeb.net/ubuntu xenial-getdeb 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/cassou/emacs/ubuntu bionic 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/ubuntu-wine/ppa/ubuntu bionic 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: Target Packages (apps/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target Packages (apps/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target Packages (apps/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target Translations (apps/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target Translations (apps/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target DEP-11 (apps/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target DEP-11 (apps/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target DEP-11-icons-small (apps/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target DEP-11-icons (apps/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target CNF (apps/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target CNF (apps/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target Packages (apps/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:3
W: Target Packages (apps/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:3
W: Target Packages (apps/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:3
W: Target Translations (apps/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:3
W: Target Translations (apps/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:3
W: Target DEP-11 (apps/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:3
W: Target DEP-11 (apps/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:3
W: Target DEP-11-icons-small (apps/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:3
W: Target DEP-11-icons (apps/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:3
W: Target CNF (apps/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:3
W: Target CNF (apps/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:3

答案1

这就是修复 metasploit 问题的方法

sudo wget -O - http://apt.metasploit.com/metasploit-framework.gpg.key | sudo apt-key add - && sudo apt-get update

相关内容