在linu终端ubuntu中更新时出错

时间:2018-05-07 10:07:28

标签: linux ubuntu terminal sudo apt-get

我尝试使用其cmd中的传统命令更新 linux ubuntu

sudo apt-get update

但是,当我尝试它时,它总会返回错误并且没有更新:

Err:1 http://us.archive.ubuntu.com/ubuntu artful InRelease
403  Forbidden [IP: 91.189.91.23 80]
Err:2 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease
403  Forbidden [IP: 91.189.91.26 80]
Err:3 http://us.archive.ubuntu.com/ubuntu artful-backports InRelease           
403  Forbidden [IP: 91.189.91.23 80]
Err:4 http://ppa.launchpad.net/ansible/ansible/ubuntu artful InRelease         
500  Operation not permitted
Err:5 http://security.ubuntu.com/ubuntu artful-security InRelease
500  Operation not permitted [IP: 91.189.88.152 80]
Reading package lists... Done
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/artful     
/InRelease  403  Forbidden [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/artful-updates  
/InRelease  403  Forbidden [IP: 91.189.91.26 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/artful-
backports/InRelease  403  Forbidden [IP: 91.189.91.23 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/artful-security
/InRelease  500  Operation not permitted [IP: 91.189.88.152 80]
E: Failed to fetch http://ppa.launchpad.net/ansible/ansible/ubuntu/dists
/artful/InRelease  500  Operation not permitted
E: Some index files failed to download. They have been ignored, or old ones
used instead.

现在我已经尝试使用此命令

sudo rm /etc/apt/sources.list.d/*

除了删除ppa并获得新的东西。 如果有人能帮助我,我真的很感激。 提前谢谢。

这是我输入/

时的输出
sudo nano /etc/apt/sources.list
 GNU nano 2.8.6             File: /etc/apt/sources.list                        

      # deb cdrom:[Ubuntu 17.10 _Artful Aardvark_ - Release amd64   (20180105.1)]/ artf$

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ artful main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ artful universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful universe
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates universe
                               [ Read 51 lines ]
^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line

0 个答案:

没有答案