在 ubuntu Maverick 中安装 MariaDB-5.2 时出现问题

发布于 2024-10-20 12:11:38 字数 7621 浏览 4 评论 0原文

我不确定这个问题是否更适合服务器故障,尽管我发现了与此站点上的安装相关的其他 MariaDB 问题,所以我假设

我按照以下说明进行操作是可以的: installing-mariadb-deb-files

我将以下内容添加到/etc /apt/sources.list.d/mariadb.list

deb http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu maverick main
deb-src http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu maverick main

我做了 sudo apt-get install mariadb*

,我得到了这个错误(最后):

$ sudo apt-get install mariadb*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libmariadbclient-dev' for regex 'mariadb*'
Note, selecting 'libmariadbclient16' for regex 'mariadb*'
Note, selecting 'libmariadbclient16-dev' for regex 'mariadb*'
Note, selecting 'mariadb-common' for regex 'mariadb*'
Note, selecting 'libmariadbd-dev' for regex 'mariadb*'
Note, selecting 'mariadb-client' for regex 'mariadb*'
Note, selecting 'mariadb-client-5.2' for regex 'mariadb*'
Note, selecting 'mariadb-client-core-5.2' for regex 'mariadb*'
Note, selecting 'mariadb-client-5.1' for regex 'mariadb*'
Note, selecting 'mariadb-client-core-5.1' for regex 'mariadb*'
Note, selecting 'mariadb-server' for regex 'mariadb*'
Note, selecting 'mariadb-server-5.2' for regex 'mariadb*'
Note, selecting 'mariadb-server-core-5.2' for regex 'mariadb*'
Note, selecting 'mariadb-test' for regex 'mariadb*'
Note, selecting 'mariadb-server-5.1' for regex 'mariadb*'
Note, selecting 'mariadb-server-core-5.1' for regex 'mariadb*'
Note, selecting 'mariadb-test-5.2' for regex 'mariadb*'
Note, selecting 'mariadb-test-5.1' for regex 'mariadb*'
Note, selecting 'libmariadbclient-dev' instead of 'libmariadbclient16-dev'
Note, selecting 'mysql-common' instead of 'mariadb-common'
Note, selecting 'mariadb-server-core-5.2' instead of 'mariadb-server-core-5.1'
The following extra packages will be installed:
  libdbd-mysql-perl libdbi-perl libhtml-template-perl libmariadbclient-dev libmariadbclient16 libmariadbd-dev libmysqlclient16
  libnet-daemon-perl libplrpc-perl mariadb-client mariadb-client-5.2 mariadb-client-core-5.2 mariadb-server mariadb-server-5.2
  mariadb-server-core-5.2 mariadb-test mariadb-test-5.2 mysql-common zlib1g-dev
Suggested packages:
  libipc-sharedcache-perl tinyca mailx
The following NEW packages will be installed:
  libdbd-mysql-perl libdbi-perl libhtml-template-perl libmariadbclient-dev libmariadbclient16 libmariadbd-dev libnet-daemon-perl
  libplrpc-perl mariadb-client mariadb-client-5.2 mariadb-client-core-5.2 mariadb-server mariadb-server-5.2 mariadb-server-core-5.2
  mariadb-test mariadb-test-5.2 zlib1g-dev
The following packages will be upgraded:
  libmysqlclient16 mysql-common
2 upgraded, 17 newly installed, 0 to remove and 230 not upgraded.
Need to get 39.7MB of archives.
After this operation, 199MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mysql-common all 5.2.5-mariadb99~maverick [10.6kB]
Get:2 http://pa.archive.ubuntu.com/ubuntu/ maverick/main libnet-daemon-perl all 0.43-1 [46.9kB]
Get:3 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main libmariadbclient16 i386 5.2.5-mariadb99~maverick [1,418kB]
Get:4 http://pa.archive.ubuntu.com/ubuntu/ maverick/main libplrpc-perl all 0.2020-2 [36.0kB]
Get:5 http://pa.archive.ubuntu.com/ubuntu/ maverick/main libdbi-perl i386 1.611-1 [825kB]
Get:6 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main libmysqlclient16 i386 5.2.5-mariadb99~maverick [4,308B]            
Get:7 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-client-core-5.2 i386 5.2.5-mariadb99~maverick [83.1kB]     
Get:8 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-client-5.2 i386 5.2.5-mariadb99~maverick [1,712kB]         
Get:9 http://pa.archive.ubuntu.com/ubuntu/ maverick/main libdbd-mysql-perl i386 4.016-1 [138kB]                                           
Get:10 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-server-core-5.2 i386 5.2.5-mariadb99~maverick [4,125kB]   
Get:11 http://pa.archive.ubuntu.com/ubuntu/ maverick/main libhtml-template-perl all 2.9-1 [65.8kB]                                        
Get:12 http://pa.archive.ubuntu.com/ubuntu/ maverick/main zlib1g-dev i386 1:1.2.3.4.dfsg-3ubuntu1 [188kB]                                 
Get:13 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-server-5.2 i386 5.2.5-mariadb99~maverick [13.3MB]         
Get:14 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main libmariadbclient-dev i386 5.2.5-mariadb99~maverick [1,680kB]      
Get:15 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main libmariadbd-dev i386 5.2.5-mariadb99~maverick [6,205kB]           
Get:16 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-client all 5.2.5-mariadb99~maverick [4,214B]              
Get:17 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-server all 5.2.5-mariadb99~maverick [4,342B]              
Get:18 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-test-5.2 all 5.2.5-mariadb99~maverick [9,852kB]           
Get:19 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-test all 5.2.5-mariadb99~maverick [4,152B]                
Fetched 39.7MB in 2min 21s (280kB/s)                                                                                                      
Preconfiguring packages ...
(Reading database ... 132956 files and directories currently installed.)
Preparing to replace mysql-common 5.1.49-1ubuntu8.1 (using .../mysql-common_5.2.5-mariadb99~maverick_all.deb) ...
Unpacking replacement mysql-common ...
Selecting previously deselected package libnet-daemon-perl.
Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.43-1_all.deb) ...
Selecting previously deselected package libplrpc-perl.
Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-2_all.deb) ...
Selecting previously deselected package libdbi-perl.
Unpacking libdbi-perl (from .../libdbi-perl_1.611-1_i386.deb) ...
Selecting previously deselected package libmariadbclient16.
Unpacking libmariadbclient16 (from .../libmariadbclient16_5.2.5-mariadb99~maverick_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libmariadbclient16_5.2.5-mariadb99~maverick_i386.deb (--unpack):
 trying to overwrite '/usr/lib/libmysqlclient_r.so.16.0.0', which is also in package libmysqlclient16 5.1.49-1ubuntu8.1
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace libmysqlclient16 5.1.49-1ubuntu8.1 (using .../libmysqlclient16_5.2.5-mariadb99~maverick_i386.deb) ...
Unpacking replacement libmysqlclient16 ...
Selecting previously deselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.016-1_i386.deb) ...
Selecting previously deselected package mariadb-client-core-5.2.
Unpacking mariadb-client-core-5.2 (from .../mariadb-client-core-5.2_5.2.5-mariadb99~maverick_i386.deb) ...
Selecting previously deselected package mariadb-client-5.2.
Unpacking mariadb-client-5.2 (from .../mariadb-client-5.2_5.2.5-mariadb99~maverick_i386.deb) ...
Selecting previously deselected package mariadb-server-core-5.2.
Unpacking mariadb-server-core-5.2 (from .../mariadb-server-core-5.2_5.2.5-mariadb99~maverick_i386.deb) ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/libmariadbclient16_5.2.5-mariadb99~maverick_i386.deb

I was not sure if this question is more appropiate maybe in server fault, although i've found other MariaDB questions related to installation on this site, so i'll assume it is ok

I followed these instructions:
installing-mariadb-deb-files

and i added the following to /etc/apt/sources.list.d/mariadb.list

deb http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu maverick main
deb-src http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu maverick main

and i did sudo apt-get install mariadb*

and i get this error (at the end):

$ sudo apt-get install mariadb*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libmariadbclient-dev' for regex 'mariadb*'
Note, selecting 'libmariadbclient16' for regex 'mariadb*'
Note, selecting 'libmariadbclient16-dev' for regex 'mariadb*'
Note, selecting 'mariadb-common' for regex 'mariadb*'
Note, selecting 'libmariadbd-dev' for regex 'mariadb*'
Note, selecting 'mariadb-client' for regex 'mariadb*'
Note, selecting 'mariadb-client-5.2' for regex 'mariadb*'
Note, selecting 'mariadb-client-core-5.2' for regex 'mariadb*'
Note, selecting 'mariadb-client-5.1' for regex 'mariadb*'
Note, selecting 'mariadb-client-core-5.1' for regex 'mariadb*'
Note, selecting 'mariadb-server' for regex 'mariadb*'
Note, selecting 'mariadb-server-5.2' for regex 'mariadb*'
Note, selecting 'mariadb-server-core-5.2' for regex 'mariadb*'
Note, selecting 'mariadb-test' for regex 'mariadb*'
Note, selecting 'mariadb-server-5.1' for regex 'mariadb*'
Note, selecting 'mariadb-server-core-5.1' for regex 'mariadb*'
Note, selecting 'mariadb-test-5.2' for regex 'mariadb*'
Note, selecting 'mariadb-test-5.1' for regex 'mariadb*'
Note, selecting 'libmariadbclient-dev' instead of 'libmariadbclient16-dev'
Note, selecting 'mysql-common' instead of 'mariadb-common'
Note, selecting 'mariadb-server-core-5.2' instead of 'mariadb-server-core-5.1'
The following extra packages will be installed:
  libdbd-mysql-perl libdbi-perl libhtml-template-perl libmariadbclient-dev libmariadbclient16 libmariadbd-dev libmysqlclient16
  libnet-daemon-perl libplrpc-perl mariadb-client mariadb-client-5.2 mariadb-client-core-5.2 mariadb-server mariadb-server-5.2
  mariadb-server-core-5.2 mariadb-test mariadb-test-5.2 mysql-common zlib1g-dev
Suggested packages:
  libipc-sharedcache-perl tinyca mailx
The following NEW packages will be installed:
  libdbd-mysql-perl libdbi-perl libhtml-template-perl libmariadbclient-dev libmariadbclient16 libmariadbd-dev libnet-daemon-perl
  libplrpc-perl mariadb-client mariadb-client-5.2 mariadb-client-core-5.2 mariadb-server mariadb-server-5.2 mariadb-server-core-5.2
  mariadb-test mariadb-test-5.2 zlib1g-dev
The following packages will be upgraded:
  libmysqlclient16 mysql-common
2 upgraded, 17 newly installed, 0 to remove and 230 not upgraded.
Need to get 39.7MB of archives.
After this operation, 199MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mysql-common all 5.2.5-mariadb99~maverick [10.6kB]
Get:2 http://pa.archive.ubuntu.com/ubuntu/ maverick/main libnet-daemon-perl all 0.43-1 [46.9kB]
Get:3 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main libmariadbclient16 i386 5.2.5-mariadb99~maverick [1,418kB]
Get:4 http://pa.archive.ubuntu.com/ubuntu/ maverick/main libplrpc-perl all 0.2020-2 [36.0kB]
Get:5 http://pa.archive.ubuntu.com/ubuntu/ maverick/main libdbi-perl i386 1.611-1 [825kB]
Get:6 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main libmysqlclient16 i386 5.2.5-mariadb99~maverick [4,308B]            
Get:7 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-client-core-5.2 i386 5.2.5-mariadb99~maverick [83.1kB]     
Get:8 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-client-5.2 i386 5.2.5-mariadb99~maverick [1,712kB]         
Get:9 http://pa.archive.ubuntu.com/ubuntu/ maverick/main libdbd-mysql-perl i386 4.016-1 [138kB]                                           
Get:10 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-server-core-5.2 i386 5.2.5-mariadb99~maverick [4,125kB]   
Get:11 http://pa.archive.ubuntu.com/ubuntu/ maverick/main libhtml-template-perl all 2.9-1 [65.8kB]                                        
Get:12 http://pa.archive.ubuntu.com/ubuntu/ maverick/main zlib1g-dev i386 1:1.2.3.4.dfsg-3ubuntu1 [188kB]                                 
Get:13 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-server-5.2 i386 5.2.5-mariadb99~maverick [13.3MB]         
Get:14 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main libmariadbclient-dev i386 5.2.5-mariadb99~maverick [1,680kB]      
Get:15 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main libmariadbd-dev i386 5.2.5-mariadb99~maverick [6,205kB]           
Get:16 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-client all 5.2.5-mariadb99~maverick [4,214B]              
Get:17 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-server all 5.2.5-mariadb99~maverick [4,342B]              
Get:18 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-test-5.2 all 5.2.5-mariadb99~maverick [9,852kB]           
Get:19 http://ftp.osuosl.org/pub/mariadb/repo/5.2/ubuntu/ maverick/main mariadb-test all 5.2.5-mariadb99~maverick [4,152B]                
Fetched 39.7MB in 2min 21s (280kB/s)                                                                                                      
Preconfiguring packages ...
(Reading database ... 132956 files and directories currently installed.)
Preparing to replace mysql-common 5.1.49-1ubuntu8.1 (using .../mysql-common_5.2.5-mariadb99~maverick_all.deb) ...
Unpacking replacement mysql-common ...
Selecting previously deselected package libnet-daemon-perl.
Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.43-1_all.deb) ...
Selecting previously deselected package libplrpc-perl.
Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-2_all.deb) ...
Selecting previously deselected package libdbi-perl.
Unpacking libdbi-perl (from .../libdbi-perl_1.611-1_i386.deb) ...
Selecting previously deselected package libmariadbclient16.
Unpacking libmariadbclient16 (from .../libmariadbclient16_5.2.5-mariadb99~maverick_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libmariadbclient16_5.2.5-mariadb99~maverick_i386.deb (--unpack):
 trying to overwrite '/usr/lib/libmysqlclient_r.so.16.0.0', which is also in package libmysqlclient16 5.1.49-1ubuntu8.1
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace libmysqlclient16 5.1.49-1ubuntu8.1 (using .../libmysqlclient16_5.2.5-mariadb99~maverick_i386.deb) ...
Unpacking replacement libmysqlclient16 ...
Selecting previously deselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.016-1_i386.deb) ...
Selecting previously deselected package mariadb-client-core-5.2.
Unpacking mariadb-client-core-5.2 (from .../mariadb-client-core-5.2_5.2.5-mariadb99~maverick_i386.deb) ...
Selecting previously deselected package mariadb-client-5.2.
Unpacking mariadb-client-5.2 (from .../mariadb-client-5.2_5.2.5-mariadb99~maverick_i386.deb) ...
Selecting previously deselected package mariadb-server-core-5.2.
Unpacking mariadb-server-core-5.2 (from .../mariadb-server-core-5.2_5.2.5-mariadb99~maverick_i386.deb) ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/libmariadbclient16_5.2.5-mariadb99~maverick_i386.deb

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

洋洋洒洒 2024-10-27 12:11:38

这部分日志是重要的部分:

Unpacking libmariadbclient16 (from .../libmariadbclient16_5.2.5-mariadb99~maverick_i386.deb) ...
dpkg:处理 /var/cache/apt/archives/libmariadbclient16_5.2.5-mariadb99~maverick_i386.deb 时出错(--unpack):
尝试覆盖'/usr/lib/libmysqlclient_r.so.16.0.0',它也在包libmysqlclient16 5.1.49-1ubuntu8.1中
dpkg-deb:子进程粘贴被信号杀死(管道损坏)
准备替换 libmysqlclient16 5.1.49-1ubuntu8.1 (使用 .../libmysqlclient16_5.2.5-mariadb99~maverick_i386.deb) ...
解压替换 libmysqlclient16 ...

据此,debian 注意到名称冲突(MariaDB 和 MySQL 都提供相同的 libmysqlclient 库),它通过用 MariaDB 包替换 MySQL 包来解决该冲突。

如果是这种情况,则安装成功,但您可以忽略警告。

This part of the log is the important part:

Unpacking libmariadbclient16 (from .../libmariadbclient16_5.2.5-mariadb99~maverick_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libmariadbclient16_5.2.5-mariadb99~maverick_i386.deb (--unpack):
trying to overwrite '/usr/lib/libmysqlclient_r.so.16.0.0', which is also in package libmysqlclient16 5.1.49-1ubuntu8.1
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace libmysqlclient16 5.1.49-1ubuntu8.1 (using .../libmysqlclient16_5.2.5-mariadb99~maverick_i386.deb) ...
Unpacking replacement libmysqlclient16 ...

According to this, debian noticed a name conflict (both MariaDB and MySQL provides the same libmysqlclient library) which it resolved by replacing the MySQL package with the MariaDB package.

If that's the case then the installation worked, except for a warning you can ignore.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文