MySQLのアップグレードに関する問題

MySQLのアップグレードに関する問題

ここはちょっと厄介です。 MySQLを5.5から5.7にアップグレードしようとしましたが、成功しませんでした。私はMint 17.2スピンを実行しています。ネットワークエラーが原因でapt-getが失敗し、一般的な適切な「修正」ルーチンは機能しません。私はすべてを手動で削除しようとしており、dpkgそうしたと思います。

走る

sudo apt-get install mysql-server

わかりました。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mysql-server : Depends: mysql-community-server (= 5.7.17-1ubuntu16.04) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

それから見てください。

apt-mark showhold

私は何も得られませんでした。

考えると、aptitudeこの問題を解決できます。

addinall@Fermi /etc/apt/sources.list.d $ sudo aptitude install mysql-server
The following NEW packages will be installed:
  mysql-client{a} mysql-community-client{ab} mysql-community-server{ab} mysql-server 
0 packages upgraded, 4 newly installed, 0 to remove and 0 not to upgrade.
Need to get 32.1 MB of archives. After unpacking 237 MB will be used.
The following packages have unmet dependencies:
 mysql-community-server : Depends: libmecab2 (>= 0.996-1.2ubuntu1) but it is not going to be installed.
                          Depends:    Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not to upgrade.
Need to get 0 B of archives. After unpacking 0 B will be used.

選択するn

Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

     Install the following packages:                                                    
1)     libdbd-mysql-perl [4.025-1ubuntu0.1 (trusty-security, trusty-updates)]           
2)     libdbi-perl [1.630-1 (trusty)]                                                   
3)     libmysqlclient18 [5.5.54-0ubuntu0.14.04.1 (now, trusty-security, trusty-updates)]
4)     mysql-client [5.5.54-0ubuntu0.14.04.1 (trusty-security, trusty-updates)]         
5)     mysql-client-5.5 [5.5.54-0ubuntu0.14.04.1 (trusty-security, trusty-updates)]     
6)     mysql-client-core-5.5 [5.5.54-0ubuntu0.14.04.1 (trusty-security, trusty-updates)]

     Keep the following packages at their current version:                              
7)     mysql-community-client [Not Installed]                                           
8)     mysql-community-server [Not Installed]                                           
9)     mysql-server [Not Installed]                                                     



Accept this solution? [Y/n/q/?]  libstdc++6 (>= 5.2) but 4.8.4-2ubuntu1~14.04.3 is installed.
                          Depends: init-system-helpers (>= 1.18~) but 1.14ubuntu1 is installed.
 mysql-community-client : Depends: libstdc++6 (>= 5.2) but 4.8.4-2ubuntu1~14.04.3 is installed.
                          Depends: libtinfo5 (>= 6) but 5.9+20140118-1ubuntu1 is installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     mysql-client [Not Installed]                       
2)     mysql-community-client [Not Installed]             
3)     mysql-community-server [Not Installed]             
4)     mysql-server [Not Installed]                       



Accept this solution? [Y/n/q/?] 

選択内容yは次のとおりです。

Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not to upgrade.
Need to get 0 B of archives. After unpacking 0 B will be used.
Selecting n

Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

     Install the following packages:                                                    
1)     libdbd-mysql-perl [4.025-1ubuntu0.1 (trusty-security, trusty-updates)]           
2)     libdbi-perl [1.630-1 (trusty)]                                                   
3)     libmysqlclient18 [5.5.54-0ubuntu0.14.04.1 (now, trusty-security, trusty-updates)]
4)     mysql-client [5.5.54-0ubuntu0.14.04.1 (trusty-security, trusty-updates)]         
5)     mysql-client-5.5 [5.5.54-0ubuntu0.14.04.1 (trusty-security, trusty-updates)]     
6)     mysql-client-core-5.5 [5.5.54-0ubuntu0.14.04.1 (trusty-security, trusty-updates)]

     Keep the following packages at their current version:                              
7)     mysql-community-client [Not Installed]                                           
8)     mysql-community-server [Not Installed]                                           
9)     mysql-server [Not Installed]                                                     



Accept this solution? [Y/n/q/?] 

5.5を再インストールしようとしています。

コンテンツmysql.list:

THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out entries below, but any other modifications may be lost.
# Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications.
deb http://repo.mysql.com/apt/ubuntu/ xenial mysql-apt-config
deb http://repo.mysql.com/apt/ubuntu/ xenial mysql-5.7
deb http://repo.mysql.com/apt/ubuntu/ xenial mysql-tools
#deb http://repo.mysql.com/apt/ubuntu/ xenial mysql-tools-preview
deb-src http://repo.mysql.com/apt/ubuntu/ xenial mysql-5.7

どんなアイデアがありますか?

ベストアンサー1

おすすめ記事