Create a gist now

Instantly share code, notes, and snippets.

@skinuxgeek /error Secret
Last active Sep 28, 2016

What would you like to do?
apt-get error
sudo apt-get purge mariadb-server-10.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
skinux@skibunix:~$ sudo apt-get purge mariadb-server-10.0 mysql-server-5.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
skinux@skibunix:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
duplicity dvdrip-doc dvdrip-utils gocr homebank-data libandroid-properties1
libanyevent-perl libasync-interrupt-perl libav-tools libdbd-mysql-perl
libdbi-perl libevent-execflow-perl libevent-perl libevent-rpc-perl
libgraphicsmagick-q16-3 libgtk2-ex-formfactory-perl libguard-perl
libintl-perl libjpeg-progs libjpeg9 libmysqlclient20 liboxideqt-qmlplugin
liboxideqtcore0 liboxideqtquick0 libpoppler-qt4-4 libpoppler44
libqt5positioning5 libquicktime2 librsync1 libsereal-decoder-perl
libsereal-encoder-perl libsereal-perl libterm-readkey-perl libva-glx1
libwhoopsie-preferences0 libxine2 libxine2-bin libxine2-doc libxine2-ffmpeg
libxine2-misc-plugins libxine2-plugins libxine2-x linux-headers-4.4.0-31
linux-headers-4.4.0-31-generic linux-headers-4.4.0-34
linux-headers-4.4.0-34-generic linux-image-4.4.0-31-generic
linux-image-4.4.0-34-generic linux-image-extra-4.4.0-31-generic
linux-image-extra-4.4.0-34-generic lsdvd mariadb-common ogmtools
python-lockfile python-ndg-httpsclient python-urllib3
qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings
qml-module-qtwebkit qml-module-ubuntu-onlineaccounts qml-module-ubuntu-web
qtdeclarative5-accounts-plugin qtdeclarative5-qtquick2-plugin subtitleripper
tidy transcode transcode-doc twolame unity-webapps-qml wavpack
whoopsie-preferences xine-ui
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
mysql-server-5.7
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
mysql-server-5.7
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
5 not fully installed or removed.
Need to get 0 B/2,572 kB of archives.
After this operation, 48.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 382137 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.15-0ubuntu0.16.04.1_amd64.deb ...
Aborting downgrade from (at least) 10.0 to 5.7.
If are sure you want to downgrade to 5.7, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.15-0ubuntu0.16.04.1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.7_5.7.15-0ubuntu0.16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
skinux@skibunix:~$ sudo apt-get install mysql-server-5.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
duplicity dvdrip-doc dvdrip-utils gocr homebank-data libandroid-properties1
libanyevent-perl libasync-interrupt-perl libav-tools libdbd-mysql-perl
libdbi-perl libevent-execflow-perl libevent-perl libevent-rpc-perl
libgraphicsmagick-q16-3 libgtk2-ex-formfactory-perl libguard-perl
libintl-perl libjpeg-progs libjpeg9 libmysqlclient20 liboxideqt-qmlplugin
liboxideqtcore0 liboxideqtquick0 libpoppler-qt4-4 libpoppler44
libqt5positioning5 libquicktime2 librsync1 libsereal-decoder-perl
libsereal-encoder-perl libsereal-perl libterm-readkey-perl libva-glx1
libwhoopsie-preferences0 libxine2 libxine2-bin libxine2-doc libxine2-ffmpeg
libxine2-misc-plugins libxine2-plugins libxine2-x linux-headers-4.4.0-31
linux-headers-4.4.0-31-generic linux-headers-4.4.0-34
linux-headers-4.4.0-34-generic linux-image-4.4.0-31-generic
linux-image-4.4.0-34-generic linux-image-extra-4.4.0-31-generic
linux-image-extra-4.4.0-34-generic lsdvd mariadb-common ogmtools
python-lockfile python-ndg-httpsclient python-urllib3
qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings
qml-module-qtwebkit qml-module-ubuntu-onlineaccounts qml-module-ubuntu-web
qtdeclarative5-accounts-plugin qtdeclarative5-qtquick2-plugin subtitleripper
tidy transcode transcode-doc twolame unity-webapps-qml wavpack
whoopsie-preferences xine-ui
Use 'sudo apt autoremove' to remove them.
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
mysql-server-5.7
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
5 not fully installed or removed.
Need to get 0 B/2,572 kB of archives.
After this operation, 48.3 MB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 382137 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.15-0ubuntu0.16.04.1_amd64.deb ...
Aborting downgrade from (at least) 10.0 to 5.7.
If are sure you want to downgrade to 5.7, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.15-0ubuntu0.16.04.1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.7_5.7.15-0ubuntu0.16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
skinux@skibunix:~$ sudo apt-get install mariadb-server-10.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mariadb-server-10.0 : Depends: mariadb-client-10.0 (>= 10.0.27-0ubuntu0.16.04.1) but it is not going to be installed
Depends: mariadb-server-core-10.0 (>= 10.0.27-0ubuntu0.16.04.1) but it is not going to be installed
Conflicts: mysql-server-core-5.7 but 5.7.15-0ubuntu0.16.04.1 is to be installed
Breaks: mysql-server
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
skinux@skibunix:~$ sudo apt-get install mariadb-server-10.0 mariadb-client-10.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mariadb-client-10.0 : Depends: mariadb-client-core-10.0 (>= 10.0.27-0ubuntu0.16.04.1) but it is not going to be installed
Conflicts: mysql-client-core-5.7 but 5.7.15-0ubuntu0.16.04.1 is to be installed
Breaks: mysql-client-5.7 but 5.7.15-0ubuntu0.16.04.1 is to be installed
Breaks: virtual-mysql-client
mariadb-server-10.0 : Depends: mariadb-server-core-10.0 (>= 10.0.27-0ubuntu0.16.04.1) but it is not going to be installed
Conflicts: mysql-server-core-5.7 but 5.7.15-0ubuntu0.16.04.1 is to be installed
Breaks: mysql-server
mysql-client-5.7 : Conflicts: virtual-mysql-client
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
skinux@skibunix:~$ sudo apt-get install mariadb-server-10.0 mariadb-client-10.0 mysql-server-core-5.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server-core-5.7 is already the newest version (5.7.15-0ubuntu0.16.04.1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mariadb-client-10.0 : Depends: mariadb-client-core-10.0 (>= 10.0.27-0ubuntu0.16.04.1) but it is not going to be installed
Conflicts: mysql-client-core-5.7 but 5.7.15-0ubuntu0.16.04.1 is to be installed
Breaks: mysql-client-5.7 but 5.7.15-0ubuntu0.16.04.1 is to be installed
Breaks: virtual-mysql-client
mariadb-server-10.0 : Depends: mariadb-server-core-10.0 (>= 10.0.27-0ubuntu0.16.04.1) but it is not going to be installed
Conflicts: mysql-server-core-5.7 but 5.7.15-0ubuntu0.16.04.1 is to be installed
Breaks: mysql-server
mysql-client-5.7 : Conflicts: virtual-mysql-client
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
skinux@skibunix:~$ sudo apt-get install mariadb-server-10.0 mariadb-client-10.0 mariadb-server-core-10.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mariadb-client-10.0 : Depends: mariadb-client-core-10.0 (>= 10.0.27-0ubuntu0.16.04.1) but it is not going to be installed
Conflicts: mysql-client-core-5.7 but 5.7.15-0ubuntu0.16.04.1 is to be installed
Breaks: mysql-client-5.7 but 5.7.15-0ubuntu0.16.04.1 is to be installed
Breaks: virtual-mysql-client
mariadb-server-10.0 : Conflicts: mysql-server-core-5.7 but 5.7.15-0ubuntu0.16.04.1 is to be installed
Breaks: mysql-server
mariadb-server-core-10.0 : Breaks: mysql-server-core-5.7 but 5.7.15-0ubuntu0.16.04.1 is to be installed
Breaks: virtual-mysql-server-core
mysql-client-5.7 : Conflicts: virtual-mysql-client
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
mysql-server-core-5.7 : Conflicts: virtual-mysql-server-core
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment