我希望有人能帮忙。我已经花了差不多两天时间,到处找过了。
我运行了 BleachBit 2.0 版,现在当我尝试使用 apt install 安装任何东西时都会失败。我很担心,因为我对 Linux 还很陌生,不知道我应该从哪里开始尝试消除损害。
我的/etc/apt/sources.list
样子是这样的:
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### Ubuntu Main Repos
deb http://au.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
###### Ubuntu Update Repos
deb http://au.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://au.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner
#------------------------------------------------------------------------------#
# UNOFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### 3rd Party Binary Repos
#### Dropbox PPA - http://dropbox.com
## Run this command: sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E
deb http://linux.dropbox.com/ubuntu/ xenial main
#### Gimp PPA - https://launchpad.net/~otto-kesselgulasch/+archive/gimp
## Run this command: sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 614C4B38
deb http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu xenial main
#### Steam for Linux - http://store.steampowered.com/about/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F24AEA9FB05498B7
deb [arch=i386] http://repo.steampowered.com/steam/ precise steam
#### VirtualBox - http://www.virtualbox.org
## Run this command: wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox_2016.asc -O- | sudo apt-key add -
deb http://download.virtualbox.org/virtualbox/debian xenial contrib
我的apt-cache stats
输出如下:
~$ apt-cache stats
Total package names: 4798 (96.0 k)
Total package structures: 5562 (245 k)
Normal packages: 2624
Pure virtual packages: 55
Single virtual packages: 531
Mixed virtual packages: 6
Missing: 2346
Total distinct versions: 2635 (211 k)
Total distinct descriptions: 2722 (65.3 k)
Total dependencies: 21499/10512 (598 k)
Total ver/file relations: 2692 (64.6 k)
Total Desc/File relations: 2722 (65.3 k)
Total Provides mappings: 697 (16.7 k)
Total globbed strings: 11818 (208 k)
Total slack space: 29.3 k
Total space accounted for: 2,007 k
Total buckets in PkgHashTable: 50503
Unused: 45916
Used: 4587
Utilization: 9.08263%
Average entries: 1.21256
Longest: 5
Shortest: 1
Total buckets in GrpHashTable: 50503
Unused: 45916
Used: 4587
Utilization: 9.08263%
Average entries: 1.046
Longest: 3
Shortest: 1
这是我尝试安装任何东西时出现的典型的错误示例:
sudo apt install htop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package htop is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'htop' has no installation candidate
我尝试过很多方法,例如:
- sudo apt-get clean
- sudo apt-get 更新
- 获得新的 sources.list 在线
- 从更新中心 GUI 工具更新 sources.list
- 其它杂项
...一切都无济于事,我只是不断收到同样的错误 E: Package 'appName' has no installation candidate
。
有人能提供一些建议,告诉我下一步该怎么做吗?我很困惑,感觉有点迷茫。