Ble*_*ley 5 updates package-management apt
我认为我的消息来源列表有问题。
apt-get update不工作,我无法安装任何东西,找不到每个包。这是我终端的一些输出,希望对您有所帮助。
bleakley
/etc/apt
?:? ls
apt.conf.d sources.list.d trustdb.gpg trusted.gpg.d
preferences.d sources.list.save trusted.gpg trusted.gpg~
Run Code Online (Sandbox Code Playgroud)
cat sources.list.save 给我不可读的二进制输出
bleakley
/etc/apt/sources.list.d
?:? ls
atareao-atareao-trusty.list.save spotify.list.save
bleakley
/etc/apt/sources.list.d
?:? cat atareao-atareao-trusty.list.save
cat: atareao-atareao-trusty.list.save: Input/output error
Run Code Online (Sandbox Code Playgroud)
的spotify.list是二进制的,太。
我该如何source.list恢复原状?
删除无用的文件
sudo rm /etc/apt/*.save
sudo rm /etc/apt/sources.list.d/*.save
Run Code Online (Sandbox Code Playgroud)创建一个新的 sources.list
sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-backports main universe multiverse restricted"
sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-updates main universe multiverse restricted"
sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-security main multiverse restricted universe"
sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main multiverse restricted universe"
Run Code Online (Sandbox Code Playgroud)刷新和升级
sudo apt-get update
sudo apt-get dist-upgrade
Run Code Online (Sandbox Code Playgroud)| 归档时间: |
|
| 查看次数: |
13544 次 |
| 最近记录: |