在Ubuntu 13.10上使用mariadb存储库的aptitude问题

我在我的ubuntu笔记本电脑上安装了mariadb 5.5, 如下所述 :

sudo add-apt-repository "deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu $(lsb_release -c -s) main" 

到目前为止它工作得很好,只有天赋有点奇怪:当我进入时

 sudo su LANG=C aptitude install 

我收到这些警告:

 The following NEW packages will be installed: linux-headers-3.11.0-12 linux-headers-3.11.0-12-generic mysql-client-core-5.5{b} mysql-server-core-5.5{b} 0 packages upgraded, 4 newly installed, 0 to remove and 2 not upgraded. Need to get 13.7 MB/21.4 MB of archives. After unpacking 100 MB will be used. The following packages have unmet dependencies: mariadb-server-core-5.5 : Conflicts: mysql-server-core-5.5 but 5.5.35-0ubuntu0.13.10.2 is to be installed. mysql-client-core-5.5 : Breaks: mysql-client-core-5.1 which is a virtual package. mysql-server-core-5.5 : Breaks: mysql-server-core-5.1 which is a virtual package. mariadb-client-core-5.5 : Conflicts: mysql-client-core-5.5 but 5.5.35-0ubuntu0.13.10.2 is to be installed. The following actions will resolve these dependencies: Keep the following packages at their current version: 1) mysql-client-core-5.5 [Not Installed] 2) mysql-server-core-5.5 [Not Installed] Accept this solution? [Y/n/q/?] 

我很困惑,按q退出!

在使用aptitude几天使用我的电脑以保持更新之后,此警告就开始了。

aptitude现在使用mariadb存储库。 这是我的/etc/apt/sources.list

 #begin sources.list deb http://de.archive.ubuntu.com/ubuntu/ saucy main restricted deb-src http://de.archive.ubuntu.com/ubuntu/ saucy main restricted ... deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu saucy main # deb-src http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu saucy main #end sources.list 

为什么要安装旧内核并执行此类操作?

我已经在

 uname -a Linux myserver 3.11.0-17-generic #31-Ubuntu SMP Mon Feb 3 21:53:31 UTC 2014 i686 i686 i686 GNU/Linux 

这是ppas / sources冲突……我有多次这样的事情,就是你已经为你的系统添加了一个源(ppa),在那里你撤销/获取的更新包含与系统中已有的包相同的包,并且它是可信任的(官方)。 例如安装了我的linux-headers 3.xx9但安装了linux-headers 3.xx8 ,因为你添加的源代码系统推荐的系统内核比官方资源更新。 所以这就是它发生的原因,解决方案是在/etc/apt/sources.list删除或禁用冲突的ppa,你马上就可以通过它了:-)

如何找到冲突的ppa,你需要列出它的包以查看它包含的包,我使用webupd8 y-ppa-manager webupd8这件事,你可以按照自己的方式去做。

 sudo add-apt-repository ppa:webupd8team/y-ppa-manager sudo apt-get update sudo apt-get install y-ppa-manager 

另一个解决方案恰好被解决,以避免冲突是删除(取消) /etc/apt/sources.list的主要ubuntu us.ubuntu.archive saucy main restricted ,例如us.ubuntu.archive saucy main restricted (或者你拥有的任何分配)然后做aptitude updateaptitude install然后移动(勾选)主要的repo并禁用sources.list存储库中的软件存储库。

对您感兴趣的其他人也可以关注此主题