apt-get upgrade:几乎所有链接都出现 403 Forbidden 错误

apt-get upgrade:几乎所有链接都出现 403 Forbidden 错误

我是一名大学生,这个错误已经持续了将近一个月。我一开始以为是服务器错误,但现在我很确定这与服务器无关,因为我试过每台服务器,但都没有用。我使用 Ubuntu 18.04 LTS 已经有几个月了,但这个错误直到现在才出现。这是我的输出 sudo apt-get 更新

    Hit:1 http://la-mirrors.evowise.com/ubuntu bionic InRelease                                                                                          
    Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                         
    Hit:3 http://ppa.launchpad.net/webupd8team/atom/ubuntu bionic InRelease                                                                              
    Hit:4 https://packages.microsoft.com/repos/vscode stable InRelease                                                                                   
    Hit:5 http://dl.google.com/linux/chrome/deb stable Release                                                                                           
    Hit:6 http://archive.canonical.com/ubuntu zesty InRelease                                                           
    Hit:7 http://dl.winehq.org/wine-builds/ubuntu artful InRelease                                     
    Get:8 http://la-mirrors.evowise.com/ubuntu bionic-updates InRelease [88.7 kB]
    Get:10 http://la-mirrors.evowise.com/ubuntu bionic-backports InRelease [74.6 kB]
    Get:11 http://la-mirrors.evowise.com/ubuntu bionic-security InRelease [83.2 kB]
    Get:12 http://la-mirrors.evowise.com/ubuntu bionic-updates/main i386 Packages [397 kB]                                                               
    Get:13 http://la-mirrors.evowise.com/ubuntu bionic-updates/main amd64 Packages [454 kB]                                                              
    Get:14 http://la-mirrors.evowise.com/ubuntu bionic-updates/main Translation-en [169 kB]                                                              
    Get:15 http://la-mirrors.evowise.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [234 kB]                                                       
    Get:16 http://la-mirrors.evowise.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [52.2 kB]                                                         
    Get:17 http://la-mirrors.evowise.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [99.1 kB]                                                         
    Get:18 http://la-mirrors.evowise.com/ubuntu bionic-updates/universe amd64 Packages [588 kB]                                                          
    Get:19 http://la-mirrors.evowise.com/ubuntu bionic-updates/universe i386 Packages [581 kB]                                                           
    Get:20 http://la-mirrors.evowise.com/ubuntu bionic-updates/universe Translation-en [161 kB]                                                          
    Get:21 http://la-mirrors.evowise.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [195 kB]                                                   
    Get:22 http://la-mirrors.evowise.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [187 kB]                                                      
    Get:23 http://la-mirrors.evowise.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [323 kB]                                                      
    Get:24 http://la-mirrors.evowise.com/ubuntu bionic-updates/multiverse amd64 Packages [6,372 B]                                                       
    Get:25 http://la-mirrors.evowise.com/ubuntu bionic-updates/multiverse i386 Packages [6,524 B]                                                        
    Get:26 http://la-mirrors.evowise.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]                                                
    Get:27 http://la-mirrors.evowise.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5,812 B]                                                
    Get:28 http://la-mirrors.evowise.com/ubuntu bionic-security/main i386 Packages [168 kB]                                                              
    Get:29 http://la-mirrors.evowise.com/ubuntu bionic-security/main amd64 Packages [218 kB]                                                             
    Get:30 http://la-mirrors.evowise.com/ubuntu bionic-security/main Translation-en [84.0 kB]                                                            
    Get:31 http://la-mirrors.evowise.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]                                                       
    Get:32 http://la-mirrors.evowise.com/ubuntu bionic-security/universe amd64 Packages [101 kB]                                                         
    Get:33 http://la-mirrors.evowise.com/ubuntu bionic-security/universe i386 Packages [99.8 kB]                                                         
    Get:34 http://la-mirrors.evowise.com/ubuntu bionic-security/universe Translation-en [56.5 kB]                                                        
    Get:35 http://la-mirrors.evowise.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [10.6 kB]                                                 
    Get:36 http://la-mirrors.evowise.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [9,088 B]                                                    
    Get:37 http://la-mirrors.evowise.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [20.1 kB]                                                    
    Get:38 http://la-mirrors.evowise.com/ubuntu bionic-security/multiverse i386 Packages [1,608 B]                                                       
    Get:39 http://la-mirrors.evowise.com/ubuntu bionic-security/multiverse amd64 Packages [1,440 B]                                                      
    Fetched 4,479 kB in 47s (96.3 kB/s)                                                                                                                                         
    Reading package lists... Done

sudo apt-get 升级

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libgnome-desktop-3-17 linux-generic linux-headers-generic linux-image-generic netplan.io nodejs nodejs-dev wireshark-common wireshark-qt
The following packages will be upgraded:
  libssh-4 libssh-gcrypt-4 nplan ubuntu-keyring
4 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
Need to get 364 kB of archives.
After this operation, 5,120 B of additional disk space will be used.
Ign:1 http://la-mirrors.evowise.com/ubuntu bionic-updates/main amd64 ubuntu-keyring all 2018.09.18.1~18.04.0
Ign:2 http://la-mirrors.evowise.com/ubuntu bionic-updates/main amd64 nplan all 0.40.1~18.04.3
Ign:3 http://la-mirrors.evowise.com/ubuntu bionic-updates/main amd64 libssh-4 amd64 0.8.0~20170825.94fa1e38-1ubuntu0.2
Ign:4 http://la-mirrors.evowise.com/ubuntu bionic-updates/main amd64 libssh-gcrypt-4 amd64 0.8.0~20170825.94fa1e38-1ubuntu0.2
Err:1 http://la-mirrors.evowise.com/ubuntu bionic-updates/main amd64 ubuntu-keyring all 2018.09.18.1~18.04.0
  403  Forbidden [IP: 104.19.137.75 80]
Err:2 http://la-mirrors.evowise.com/ubuntu bionic-updates/main amd64 nplan all 0.40.1~18.04.3
  403  Forbidden [IP: 104.19.137.75 80]
Err:3 http://la-mirrors.evowise.com/ubuntu bionic-updates/main amd64 libssh-4 amd64 0.8.0~20170825.94fa1e38-1ubuntu0.2
  403  Forbidden [IP: 104.19.137.75 80]
Err:4 http://la-mirrors.evowise.com/ubuntu bionic-updates/main amd64 libssh-gcrypt-4 amd64 0.8.0~20170825.94fa1e38-1ubuntu0.2
  403  Forbidden [IP: 104.19.137.75 80]
E: Failed to fetch http://la-mirrors.evowise.com/ubuntu/pool/main/u/ubuntu-keyring/ubuntu-keyring_2018.09.18.1~18.04.0_all.deb  403  Forbidden [IP: 104.19.137.75 80]
E: Failed to fetch http://la-mirrors.evowise.com/ubuntu/pool/main/n/netplan.io/nplan_0.40.1~18.04.3_all.deb  403  Forbidden [IP: 104.19.137.75 80]
E: Failed to fetch http://la-mirrors.evowise.com/ubuntu/pool/main/libs/libssh/libssh-4_0.8.0~20170825.94fa1e38-1ubuntu0.2_amd64.deb  403  Forbidden [IP: 104.19.137.75 80]
E: Failed to fetch http://la-mirrors.evowise.com/ubuntu/pool/main/libs/libssh/libssh-gcrypt-4_0.8.0~20170825.94fa1e38-1ubuntu0.2_amd64.deb  403  Forbidden [IP: 104.19.137.75 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

来源列表

###### Ubuntu Main Repos
deb http://in.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://in.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse 
deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse

ls /etc/apt/sources.list.d

$ ls
fossproject-ubuntu-ppa-artful.list              pbek-ubuntu-qownnotes-artful.list.distUpgrade  webupd8team-ubuntu-brackets-bionic.list.save
fossproject-ubuntu-ppa-artful.list.distUpgrade  pbek-ubuntu-qownnotes-artful.list.save         webupd8team-ubuntu-java-artful.list
fossproject-ubuntu-ppa-artful.list.save         vscode.list                                    webupd8team-ubuntu-java-artful.list.distUpgrade
google-chrome.list                              vscode.list.save                               webupd8team-ubuntu-java-artful.list.save
google-chrome.list.distUpgrade                  webupd8team-ubuntu-atom-bionic.list            wireshark-dev-ubuntu-stable-zesty.list
google-chrome.list.save                         webupd8team-ubuntu-atom-bionic.list.save       wireshark-dev-ubuntu-stable-zesty.list.distUpgrade
pbek-ubuntu-qownnotes-artful.list               webupd8team-ubuntu-brackets-bionic.list        wireshark-dev-ubuntu-stable-zesty.list.save

我几乎尝试了所有方法,但都无济于事。我没有双启动,我的常用操作系统是 Ubuntu。请帮帮我...

答案1

您需要修复 source.list 并切换到国家/地区的默认存储库镜像,因为它不允许您未经身份验证下载软件包。您需要编辑文件 /etc/apt/source.list

sudo nano /etc/apt/source.list

将内容替换为以下内容

###### Ubuntu Main Repos
deb http://in.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://in.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse 
deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse 

之后你将能够更新和升级系统

sudo apt update && sudo apt upgrade

答案2

  1. 打开(或前往)软件与更新
  2. 点击或展开下载自
  3. 选择其他...
  4. 点击选择最佳服务器- 您将看到“正在测试下载服务器……”
  5. 完成后,点击选择服务器
  6. 关闭
  7. 重新加载
  8. 就是这样。

继续跑吧sudo apt-get update

答案3

[Linux 说明]

  1. [软件源][附加存储库] 取消选中出现 403 错误的存储库
  2. [软件源] 当提示重新加载时,选择 OK
  3. [终端] 验证问题是否已消失:sudo apt update
  4. (可选)[终端]删除不需要的软件包:sudo apt-get autoremove

相关内容