我收到以下错误:
Error opening the cache: could not open file /var/lib/dpkg/status - open (13: permission denied)
我根本无法更新我的系统。当我点击更新时,我发现所有 PPA 都找不到
我已经尝试过找到的所有答案,包括:
- 创建此文件的克隆并重命名,以防其损坏。
- 恢复备份(.old)
- 修复权限(实际上我给了 777)
以上方法均未解决我的问题。有没有一种轻松的方法来重新安装 Aptitude?
编辑:输出stat
File: ‘/var/lib/dpkg/status’
Size: 2720129 Blocks: 5320 IO Block: 4096 regular file
Device: 801h/2049d Inode: 5389567 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2015-10-19 08:32:02.481638343 +0300
Modify: 2015-10-16 23:22:37.787905868 +0300
Change: 2015-10-16 23:22:37.795905748 +0300
Birth: -
sudo apt-get update
这会产生很多输出,我不允许在这里发布。但错误如下:
Err http://ppa.launchpad.net utopic/main Sources
404 Not Found
Err http://ppa.launchpad.net utopic/main amd64 Packages
404 Not Found
Err http://ppa.launchpad.net utopic/main i386 Packages
404 Not Found
Ign http://ppa.launchpad.net utopic/main Translation-en_US
Ign http://ppa.launchpad.net utopic/main Translation-en
Fetched 174 kB in 8s (21,6 kB/s)
W: Failed to fetch cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)/dists/trusty/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)/dists/trusty/restricted/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)/dists/trusty/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)/dists/trusty/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/utopic/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/utopic/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/utopic/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
sudo aptitude update 也遵循相同的模式:
Hit http://ppa.launchpad.net trusty/main Sources
Hit http://ppa.launchpad.net trusty/main Sources
Err http://ppa.launchpad.net utopic/main Sources
404 Not Found
Err http://ppa.launchpad.net utopic/main amd64 Packages
404 Not Found
Err http://ppa.launchpad.net utopic/main i386 Packages
404 Not Found
Ign http://ppa.launchpad.net utopic/main Translation-en_US
Ign http://ppa.launchpad.net utopic/main Translation-en
Fetched 112 kB in 8s (14,0 kB/s)
W: Failed to fetch cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)/dists/trusty/main/binary-amd64/Packages: Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)/dists/trusty/restricted/binary-amd64/Packages: Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)/dists/trusty/main/binary-i386/Packages: Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)/dists/trusty/restricted/binary-i386/Packages: Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch http://archive.getdeb.net/ubuntu/dists/utopic-getdeb/games/binary-i386/Packages: 404 Not Found [IP: 104.28.24.125 80]
W: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/utopic/main/source/Sources: 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/utopic/main/binary-amd64/Packages: 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/utopic/main/binary-i386/Packages: 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Couldn't rebuild package cache
除此之外,在我的网络监视器旁边的顶部有一个永久的红色图标
编辑:sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.10
Release: 14.10
Codename: utopic