linux下sudo apt-get update 报Err http://security.ubuntu.com precise-security InRelease 等

本文提供了一种解决Linux系统更新时出现错误的实用方法,通过清除APT缓存和锁定文件,帮助用户顺利进行系统更新。

今天在进行linux更新的时候一直报错,尝试了很多办法都不行
于是找到一个方法 切实可行
以根用户运行

cd  /var/lib/apt/lists 
rm *
rm /var/cache/apt/archives/lock
rm /var/lib/dpkg/lock
The following extra packages will be installed: openssh-client openssh-server ssh-import-id Suggested packages: libpam-ssh keychain monkeysphere openssh-blacklist openssh-blacklist-extra rssh molly-guard The following NEW packages will be installed: openssh-server ssh ssh-import-id The following packages will be upgraded: openssh-client 1 upgraded, 3 newly installed, 0 to remove and 767 not upgraded. Need to get 1,310 kB of archives. After this operation, 926 kB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated! openssh-client openssh-server ssh ssh-import-id Install these packages without verification [y/N]? y Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main openssh-client i386 1:5.9p1-5ubuntu1.10 404 Not Found [IP: 91.189.91.82 80] Err http://us.archive.ubuntu.com/ubuntu/ precise/main ssh-import-id all 2.10-0ubuntu1 404 Not Found [IP: 91.189.91.82 80] Err http://security.ubuntu.com/ubuntu/ precise-security/main openssh-client i386 1:5.9p1-5ubuntu1.10 404 Not Found [IP: 91.189.91.81 80] Err http://security.ubuntu.com/ubuntu/ precise-security/main openssh-server i386 1:5.9p1-5ubuntu1.10 404 Not Found [IP: 91.189.91.81 80] Err http://security.ubuntu.com/ubuntu/ precise-security/main ssh all 1:5.9p1-5ubuntu1.10 404 Not Found [IP: 91.189.91.81 80] Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-client_5.9p1-5ubuntu1.10_i386.deb 404 Not Found [IP: 91.189.91.81 80] Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-server_5.9p1-5ubuntu1.10_i386.deb 404 Not Found [IP: 91.189.91.81 80] Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssh/ssh_5.9p1-5ubuntu1.10_all.deb 404 Not Found [IP: 91.189.91.81 80] Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/ssh-import-id/ssh-import-id_2.10-0ubuntu1_all.deb 404 Not Found [IP: 91.189.91.82 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
08-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值