首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >禁止apt-获取升级错误403

禁止apt-获取升级错误403
EN

Ask Ubuntu用户
提问于 2018-05-10 16:06:53
回答 1查看 7.1K关注 0票数 1

我正在运行Ubuntu16.04.4 LTS。

sudo apt更新工作正常,但是当我运行sudo apt升级时,我会得到以下错误:(注意:我已经将下载服务器从source.list改为archive.ubuntu.com而不是pt.archive.ubuntu.com)。

代码语言:javascript
复制
/etc/apt# sudo apt-get upgrade --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libdrm2 linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
  apache2 apache2-bin apache2-data apache2-utils apport cloud-guest-utils distro-info-data gcc-5-base grub-common grub-legacy-ec2 grub-pc grub-pc-bin grub2-common hdparm ifupdown libicu55
  libpam-modules libpam-modules-bin libpam-runtime libpam0g libpci3 libperl5.22 libplymouth4 libpython3.5 libpython3.5-minimal libpython3.5-stdlib libseccomp2 libssl1.0.0 libstdc++6 linux-base
  lshw lxcfs lxd lxd-client mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server mysql-server-5.7 mysql-server-core-5.7 open-vm-tools openssl patch pciutils perl perl-base
  perl-modules-5.22 plymouth plymouth-theme-ubuntu-text python-apt-common python3-apport python3-apt python3-distupgrade python3-problem-report python3.5 python3.5-minimal snap-confine snapd
  sosreport ubuntu-core-launcher ubuntu-release-upgrader-core wget xdg-user-dirs
63 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 15.7 MB/67.5 MB of archives.
After this operation, 3,140 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http/security.ubuntu.com/ubuntu xenial-security/main amd64 libpython3.5 amd64 3.5.2-2ubuntu0~16.04.4
  403  Forbidden [IP: 91.189.88.149 80]
Ign:2 http/security.ubuntu.com/ubuntu xenial-security/main amd64 python3.5 amd64 3.5.2-2ubuntu0~16.04.4
Ign:3 http//security.ubuntu.com/ubuntu xenial-security/main amd64 libpython3.5-stdlib amd64 3.5.2-2ubuntu0~16.04.4
Err:1 http//security.ubuntu.com/ubuntu xenial-security/main amd64 libpython3.5 amd64 3.5.2-2ubuntu0~16.04.4
  403  Forbidden [IP: 91.189.88.149 80]

......................

update-initramfs: Generating /boot/initrd.img-4.4.0-62-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
E: Failed to fetch http//security.ubuntu.com/ubuntu/pool/main/p/python3.5/libpython3.5_3.5.2-2ubuntu0~16.04.4_amd64.deb  403  Forbidden [IP: 91.189.88.149 80]

E: Failed to fetch http//security.ubuntu.com/ubuntu/pool/main/p/python3.5/python3.5_3.5.2-2ubuntu0~16.04.4_amd64.deb  403  Forbidden [IP: 91.189.88.149 80]

E: Failed to fetch http//security.ubuntu.com/ubuntu/pool/main/p/python3.5/libpython3.5-stdlib_3.5.2-2ubuntu0~16.04.4_amd64.deb  403  Forbidden [IP: 91.189.88.149 80]

E: Failed to fetch http//security.ubuntu.com/ubuntu/pool/main/p/python3.5/python3.5-minimal_3.5.2-2ubuntu0~16.04.4_amd64.deb  403  Forbidden [IP: 91.189.88.149 80]

谢谢!R.L.

EN

回答 1

Ask Ubuntu用户

发布于 2018-05-10 16:10:47

尝试查看您的文件是否在本地apt存储库中损坏。用

代码语言:javascript
复制
sudo rm -fr /var/lib/apt/lists/*
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1034558

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档