[MDEV-2574] LP:730557 - apt-get install mariadb-server-5.2 fails on Debian squeeze Created: 2011-03-07 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Kristian Nielsen | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Two users reported this problem. We do not see it in our automatic install/upgrade test, so it may be specific to a particular set of installed packages, or maybe the VMs in the Buildbot need to be upgraded to latest version of squeeze to see it. I will try to reproduce manually. The problem is not that package mariadb-common is missing (it is provided by the mysql-common package), but that apt-get does not automatically select the right dependency resolution. Another user reported that a workaround was to use aptitude to install, deny the first solution it proposes, and accept the second solution: $ sudo aptitude install mariadb-server-5.2 mysql-common The following actions will resolve these dependencies: Upgrade the following packages: Accept this solution? [Y/n/q/?] y Here is a description of the problem from Oliver Schneider: I have tried to install MariaDB (tried both 5.1 and http://kb.askmonty.org/v/installing-mariadb-deb-files However, for both cases apt will complain about a missing package Any ideas as to what I'm doing wrong? There is a package called Thanks in advance, // Oliver PS: Exact messages: ---------------------------- The following packages have unmet dependencies: ---------------------------- The following packages have unmet dependencies: |
| Comments |
| Comment by Rasmus Johansson (Inactive) [ 2011-03-07 ] |
|
Re: apt-get install mariadb-server-5.2 fails on Debian squeeze Note that the state prior to successful installation only references mysql in suggestions to installed packages. The only thing that is special about the system in question is that it was upgraded from Lenny to Squeeze. Otherwise it's pretty much vanilla. I'm trying to reproduce it in a VM. If I manage to gather more info I'll post it here. |
| Comment by Rasmus Johansson (Inactive) [ 2011-03-07 ] |
|
Folks, here are the two files with the package status before installation of mariadb (dpkg.status.1) and after successful installation (dpkg.status.0). Note that the state prior to successful installation only references mysql in suggestions to installed packages. The only thing that is special about the system in question is that it was upgraded from Lenny to Squeeze. Otherwise it's pretty much vanilla. I'm trying to reproduce it in a VM. If I manage to gather more info I'll post it here. |
| Comment by Rasmus Johansson (Inactive) [ 2011-03-07 ] |
|
Re: apt-get install mariadb-server-5.2 fails on Debian squeeze |
| Comment by Rasmus Johansson (Inactive) [ 2011-03-07 ] |
|
Re: apt-get install mariadb-server-5.2 fails on Debian squeeze sudo nano /etc/apt/sources.list sudo apt-get update sudo apt-get dist-upgrade sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 1BB943DB
sudo apt-get install mariadb-server
sudo apt-get install mysql-common
sudo apt-get install mariadb-server-5.2
sudo apt-get --purge remove mysql-common
sudo nano /etc/apt/sources.list.d/mariadb.list
sudo apt-get update && sudo apt-cache show mysql-common
sudo apt-get install mariadb-server-5.2
sudo apt-get install mariadb-server-5.2 mariadb-client-5.2 libmariadbclient16
sudo apt-get install mariadb-server-5.2 mariadb-client-5.2 libmariadbclient16 mysql-common
sudo aptitude install mariadb-server-5.2 mysql-common
sudo aptitude install mariadb-server-5.2 mysql-common |
| Comment by Rasmus Johansson (Inactive) [ 2011-03-07 ] |
|
Re: apt-get install mariadb-server-5.2 fails on Debian squeeze So my guess would be that it has to do with the upgrade ... will try to reproduce it with an upgrade now. |
| Comment by Kristian Nielsen [ 2011-03-08 ] |
|
Re: apt-get install mariadb-server-5.2 fails on Debian squeeze I think the core of the problem might be this, from a paste of one of your failures: libmariadbclient16: For some reason, apt-get wants to install the MySQL version of libmysqlclient16 (5.1.49-3). This will not work, but I have no idea why apt-get would choose the lower version 5.1.49-3 over the higher version 5.2.5-mariadb99~squeeze. I read `man 5 deb-version`, and I read it as the mariadb version being bigger and so should be prefered. Also your attempts to install the mysql-common package explicitly should likewise have pulled in the MariaDB version, as that version is again higher than the mysql one. Your paste of the aptitude install command shows that in fact the old version of mysql-common was installed: Upgrade the following packages: I can only speculate that apt/aptitude somehow ended up thinking the old version of mysql-common was pinned/prefered by the user. But I have no idea why that would have happened |
| Comment by Rasmus Johansson (Inactive) [ 2011-03-09 ] |
|
Re: apt-get install mariadb-server-5.2 fails on Debian squeeze I'll give it another try tonight. |
| Comment by Kristian Nielsen [ 2011-04-04 ] |
|
Re: apt-get install mariadb-server-5.2 fails on Debian squeeze |
| Comment by Timour Katchaounov (Inactive) [ 2011-07-24 ] |
|
Re: apt-get install mariadb-server-5.2 fails on Debian squeeze Today I tried to install MariaDB 5.3 on my Ubunty 11.04 64-bit. First I added the 5.3 repo, and just tried to install mariadb-server. $ sudo apt-get install mariadb-server ... Getting packages ... Fetched 23,8 MB in 17s (1367 kB/s) Then I tried a second time to see a more concise error message: $ sudo apt-get install mariadb-server It seems there is some dependency between akonadi-server and MySQL. Now I am stuck. I have a standard Ubuntu install, where I added the mysql-5.1 packages |
| Comment by Timour Katchaounov (Inactive) [ 2011-07-24 ] |
|
Re: apt-get install mariadb-server-5.2 fails on Debian squeeze The following packages have unmet dependencies: libmysqlclient16: Depends: libmariadbclient16 (= 5.3.0-mariadb101~natty) but it is not installed |
| Comment by Timour Katchaounov (Inactive) [ 2011-07-24 ] |
|
Re: apt-get install mariadb-server-5.2 fails on Debian squeeze This command seemed to fix the problem. After this command I ran: Now I could start mariadb via |
| Comment by Kristian Nielsen [ 2011-07-25 ] |
|
Re: apt-get install mariadb-server-5.2 fails on Debian squeeze |
| Comment by Rasmus Johansson (Inactive) [ 2012-02-04 ] |
|
Re: apt-get install mariadb-server-5.2 fails on Debian squeeze ~# apt-get install mariadb-server-5.2 The following packages have unmet dependencies: The problem is with mariadb-common: root@testzarafa3:~# apt-get install mariadb-common To fix it: root@testzarafa3:~# apt-get remove mysql-common and then it works: ~# apt-get install mariadb-server-5.2 |
| Comment by Rasmus Johansson (Inactive) [ 2012-02-28 ] |
|
Launchpad bug id: 730557 |