有没有办法可以查看我在sources.list 中配置的档案中的所有版本。我可以用 看到每个档案的最后一个版本apt-get policy,但我怎样才能看到它们呢?
有什么办法可以包括PPA和sources.list.d 中的任何内容?
我升级 MySQL 服务器失败。这是我尝试过的:
我首先发出这个命令来更新包列表:
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
然后,通过以下方式升级:
sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)
它显示以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
mysql-server-5.5 : Depends: mysql-server-core-5.5 (= 5.5.28-0ubuntu0.12.04.2) but 5.5.31-0ubuntu0.12.04.1 is installed
E: Unmet dependencies. Try using -f.
Run Code Online (Sandbox Code Playgroud)
显然安装了更新的版本(但为什么?我没有手动安装)。好的,正如它所暗示的,我发出命令来尝试修复:
sudo apt-get -f install
Run Code Online (Sandbox Code Playgroud)
这是输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages …Run Code Online (Sandbox Code Playgroud)