Advertisement
jens81

Untitled

Sep 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.75 KB | None | 0 0
  1. ubuntu@ip-172-31-45-140:~$ sudo apt-get remove --purge mysql-server mysql-client mysql-common
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. Some packages could not be installed. This may mean that you have
  6. requested an impossible situation or if you are using the unstable
  7. distribution that some required packages have not yet been created
  8. or been moved out of Incoming.
  9. The following information may help to resolve the situation:
  10.  
  11. The following packages have unmet dependencies:
  12. mariadb-client-10.0 : Depends: libdbd-mysql-perl (>= 1.2202) but it is not going to be installed
  13. mariadb-client-core-10.0 : Depends: mariadb-common (>= 10.0.36-0ubuntu0.16.04.1) but it is not going to be installed
  14. E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
  15. ubuntu@ip-172-31-45-140:~$ sudo apt-get autoremove
  16. Reading package lists... Done
  17. Building dependency tree
  18. Reading state information... Done
  19. The following packages will be REMOVED:
  20. libdbd-mysql-perl libdbi-perl libmysqlclient20 libterm-readkey-perl mariadb-common
  21. 0 upgraded, 0 newly installed, 5 to remove and 23 not upgraded.
  22. 2 not fully installed or removed.
  23. After this operation, 6,931 kB disk space will be freed.
  24. Do you want to continue? [Y/n] y
  25. (Reading database ... 93704 files and directories currently installed.)
  26. Removing libdbd-mysql-perl (4.033-1ubuntu0.1) ...
  27. Removing libdbi-perl (1.634-1build1) ...
  28. Removing libmysqlclient20:amd64 (5.7.23-0ubuntu0.16.04.1) ...
  29. Removing libterm-readkey-perl (2.33-1build1) ...
  30. Removing mariadb-common (10.0.36-0ubuntu0.16.04.1) ...
  31. Processing triggers for man-db (2.7.5-1) ...
  32. Processing triggers for libc-bin (2.23-0ubuntu10) ...
  33. Setting up mysql-server-5.7 (5.7.23-0ubuntu0.16.04.1) ...
  34. Renaming removed key_buffer and myisam-recover options (if present)
  35. ERROR: Unable to start MySQL server:
  36. mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
  37. mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
  38. Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.
  39. Once the problem is resolved, run apt-get --fix-broken install to retry.
  40. dpkg: error processing package mysql-server-5.7 (--configure):
  41. subprocess installed post-installation script returned error exit status 1
  42. dpkg: dependency problems prevent configuration of mysql-server:
  43. mysql-server depends on mysql-server-5.7; however:
  44. Package mysql-server-5.7 is not configured yet.
  45.  
  46. dpkg: error processing package mysql-server (--configure):
  47. dependency problems - leaving unconfigured
  48. No apport report written because the error message indicates its a followup error from a previous failure.
  49. Errors were encountered while processing:
  50. mysql-server-5.7
  51. mysql-server
  52. E: Sub-process /usr/bin/dpkg returned an error code (1)
  53. ubuntu@ip-172-31-45-140:~$ sudo apt-get autoclean
  54. Reading package lists... Done
  55. Building dependency tree
  56. Reading state information... Done
  57. ubuntu@ip-172-31-45-140:~$ sudo apt-get install mariadb-server
  58. Reading package lists... Done
  59. Building dependency tree
  60. Reading state information... Done
  61. The following package was automatically installed and is no longer required:
  62. libevent-core-2.0-5
  63. Use 'sudo apt autoremove' to remove it.
  64. The following additional packages will be installed:
  65. libdbd-mysql-perl libdbi-perl libmysqlclient20 libterm-readkey-perl mariadb-client-10.0 mariadb-client-core-10.0 mariadb-common mariadb-server-10.0 mariadb-server-core-10.0
  66. Suggested packages:
  67. libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl mailx mariadb-test tinyca
  68. The following packages will be REMOVED:
  69. mysql-client mysql-client-5.7 mysql-client-core-5.7 mysql-server mysql-server-5.7 mysql-server-core-5.7
  70. The following NEW packages will be installed:
  71. libdbd-mysql-perl libdbi-perl libmysqlclient20 libterm-readkey-perl mariadb-client-10.0 mariadb-client-core-10.0 mariadb-common mariadb-server mariadb-server-10.0 mariadb-server-core-10.0
  72. 0 upgraded, 10 newly installed, 6 to remove and 23 not upgraded.
  73. 2 not fully installed or removed.
  74. Need to get 16.8 MB of archives.
  75. After this operation, 15.4 MB disk space will be freed.
  76. Do you want to continue? [Y/n] y
  77. Get:1 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 mariadb-client-10.0 amd64 10.0.36-0ubuntu0.16.04.1 [1,161 kB]
  78. Get:2 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libdbi-perl amd64 1.634-1build1 [743 kB]
  79. Get:3 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmysqlclient20 amd64 5.7.23-0ubuntu0.16.04.1 [812 kB]
  80. Get:4 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libdbd-mysql-perl amd64 4.033-1ubuntu0.1 [84.3 kB]
  81. Get:5 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libterm-readkey-perl amd64 2.33-1build1 [27.2 kB]
  82. Get:6 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 mariadb-common all 10.0.36-0ubuntu0.16.04.1 [16.0 kB]
  83. Get:7 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 mariadb-client-core-10.0 amd64 10.0.36-0ubuntu0.16.04.1 [4,640 kB]
  84. Get:8 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 mariadb-server-core-10.0 amd64 10.0.36-0ubuntu0.16.04.1 [4,858 kB]
  85. Get:9 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 mariadb-server-10.0 amd64 10.0.36-0ubuntu0.16.04.1 [4,418 kB]
  86. Get:10 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 mariadb-server all 10.0.36-0ubuntu0.16.04.1 [13.1 kB]
  87. Fetched 16.8 MB in 0s (41.3 MB/s)
  88. Preconfiguring packages ...
  89. (Reading database ... 93502 files and directories currently installed.)
  90. Removing mysql-server (5.7.23-0ubuntu0.16.04.1) ...
  91. Removing mysql-server-5.7 (5.7.23-0ubuntu0.16.04.1) ...
  92. Removing mysql-server-core-5.7 (5.7.23-0ubuntu0.16.04.1) ...
  93. Removing mysql-client (5.7.23-0ubuntu0.16.04.1) ...
  94. dpkg: mysql-client-5.7: dependency problems, but removing anyway as you requested:
  95. dbconfig-mysql depends on mysql-client | mariadb-client | virtual-mysql-client; however:
  96. Package mysql-client is not installed.
  97. Package mariadb-client is not installed.
  98. Package virtual-mysql-client is not installed.
  99. Package mysql-client-5.7 which provides virtual-mysql-client is to be removed.
  100. Package mariadb-client-10.0 which provides virtual-mysql-client is not installed.
  101.  
  102. Removing mysql-client-5.7 (5.7.23-0ubuntu0.16.04.1) ...
  103. Removing mysql-client-core-5.7 (5.7.23-0ubuntu0.16.04.1) ...
  104. Processing triggers for man-db (2.7.5-1) ...
  105. Selecting previously unselected package mariadb-client-10.0.
  106. (Reading database ... 93277 files and directories currently installed.)
  107. Preparing to unpack .../mariadb-client-10.0_10.0.36-0ubuntu0.16.04.1_amd64.deb ...
  108. Unpacking mariadb-client-10.0 (10.0.36-0ubuntu0.16.04.1) ...
  109. Selecting previously unselected package libdbi-perl.
  110. Preparing to unpack .../libdbi-perl_1.634-1build1_amd64.deb ...
  111. Unpacking libdbi-perl (1.634-1build1) ...
  112. Selecting previously unselected package libmysqlclient20:amd64.
  113. Preparing to unpack .../libmysqlclient20_5.7.23-0ubuntu0.16.04.1_amd64.deb ...
  114. Unpacking libmysqlclient20:amd64 (5.7.23-0ubuntu0.16.04.1) ...
  115. Selecting previously unselected package libdbd-mysql-perl.
  116. Preparing to unpack .../libdbd-mysql-perl_4.033-1ubuntu0.1_amd64.deb ...
  117. Unpacking libdbd-mysql-perl (4.033-1ubuntu0.1) ...
  118. Selecting previously unselected package libterm-readkey-perl.
  119. Preparing to unpack .../libterm-readkey-perl_2.33-1build1_amd64.deb ...
  120. Unpacking libterm-readkey-perl (2.33-1build1) ...
  121. Selecting previously unselected package mariadb-common.
  122. Preparing to unpack .../mariadb-common_10.0.36-0ubuntu0.16.04.1_all.deb ...
  123. Unpacking mariadb-common (10.0.36-0ubuntu0.16.04.1) ...
  124. Selecting previously unselected package mariadb-client-core-10.0.
  125. Preparing to unpack .../mariadb-client-core-10.0_10.0.36-0ubuntu0.16.04.1_amd64.deb ...
  126. Unpacking mariadb-client-core-10.0 (10.0.36-0ubuntu0.16.04.1) ...
  127. Selecting previously unselected package mariadb-server-core-10.0.
  128. Preparing to unpack .../mariadb-server-core-10.0_10.0.36-0ubuntu0.16.04.1_amd64.deb ...
  129. Unpacking mariadb-server-core-10.0 (10.0.36-0ubuntu0.16.04.1) ...
  130. Processing triggers for man-db (2.7.5-1) ...
  131. Processing triggers for libc-bin (2.23-0ubuntu10) ...
  132. Setting up mariadb-common (10.0.36-0ubuntu0.16.04.1) ...
  133. update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn't exist
  134. dpkg: error processing package mariadb-common (--configure):
  135. subprocess installed post-installation script returned error exit status 2
  136. E: Sub-process /usr/bin/dpkg returned an error code (1)
  137. ubuntu@ip-172-31-45-140:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement