Error installing mysql-server on Debian 9 Stretch (dependency problems)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
2












Using Debian 9.5, fresh install. I want to install mysql-server, but I run into dependency problems.



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: default-mysql-server but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

apt-get install mysql-server default-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:
default-mysql-server : Depends: mariadb-server-10.1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install mysql-server default-mysql-server mariadb-server-10.1
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:
mariadb-server-10.1 : Depends: libdbi-perl but it is not going to be installed
Recommends: libhtml-template-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install mysql-server default-mysql-server mariadb-server-10.1 libhtml-template-perl
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:
libhtml-template-perl : Depends: libcgi-pm-perl but it is not going to be installed or
perl (< 5.19) but 5.26.2-7 is to be installed
mariadb-server-10.1 : Depends: libdbi-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install mysql-server default-mysql-server mariadb-server-10.1 libdbi-perl
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:
libdbi-perl : Depends: perlapi-5.24.1
E: Unable to correct problems, you have held broken packages.


EDIT1: apt-cache policy:



apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://security.debian.org/debian-security stretch/updates/contrib amd64 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=contrib,b=amd64
origin security.debian.org
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=amd64
origin security.debian.org
500 http://deb.debian.org/debian stretch-updates/main amd64 Packages
release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian stretch/main amd64 Packages
release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
origin deb.debian.org
Pinned packages:


EDIT2: apt policy perl perl-base:



apt policy perl perl-base
perl:
Installed: 5.26.2-7
Candidate: 5.26.2-7
Version table:
*** 5.26.2-7 100
100 /var/lib/dpkg/status
5.24.1-3+deb9u4 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
perl-base:
Installed: 5.26.2-7
Candidate: 5.26.2-7
Version table:
*** 5.26.2-7 100
100 /var/lib/dpkg/status
5.24.1-3+deb9u4 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages


How can I fix these dependency problems?










share|improve this question























  • Did you add additional repositories? Can you add the output of apt-cache policy to your post?
    – jordanm
    4 hours ago










  • Ok, added apt-cache policy output.
    – klor
    4 hours ago










  • Have you done apt-get update before trying to install?
    – sebasth
    4 hours ago










  • Yes, of course, apt-get update was done before install.
    – klor
    4 hours ago










  • What’s the output of apt policy perl perl-base?
    – Stephen Kitt
    4 hours ago














up vote
1
down vote

favorite
2












Using Debian 9.5, fresh install. I want to install mysql-server, but I run into dependency problems.



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: default-mysql-server but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

apt-get install mysql-server default-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:
default-mysql-server : Depends: mariadb-server-10.1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install mysql-server default-mysql-server mariadb-server-10.1
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:
mariadb-server-10.1 : Depends: libdbi-perl but it is not going to be installed
Recommends: libhtml-template-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install mysql-server default-mysql-server mariadb-server-10.1 libhtml-template-perl
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:
libhtml-template-perl : Depends: libcgi-pm-perl but it is not going to be installed or
perl (< 5.19) but 5.26.2-7 is to be installed
mariadb-server-10.1 : Depends: libdbi-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install mysql-server default-mysql-server mariadb-server-10.1 libdbi-perl
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:
libdbi-perl : Depends: perlapi-5.24.1
E: Unable to correct problems, you have held broken packages.


EDIT1: apt-cache policy:



apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://security.debian.org/debian-security stretch/updates/contrib amd64 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=contrib,b=amd64
origin security.debian.org
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=amd64
origin security.debian.org
500 http://deb.debian.org/debian stretch-updates/main amd64 Packages
release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian stretch/main amd64 Packages
release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
origin deb.debian.org
Pinned packages:


EDIT2: apt policy perl perl-base:



apt policy perl perl-base
perl:
Installed: 5.26.2-7
Candidate: 5.26.2-7
Version table:
*** 5.26.2-7 100
100 /var/lib/dpkg/status
5.24.1-3+deb9u4 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
perl-base:
Installed: 5.26.2-7
Candidate: 5.26.2-7
Version table:
*** 5.26.2-7 100
100 /var/lib/dpkg/status
5.24.1-3+deb9u4 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages


How can I fix these dependency problems?










share|improve this question























  • Did you add additional repositories? Can you add the output of apt-cache policy to your post?
    – jordanm
    4 hours ago










  • Ok, added apt-cache policy output.
    – klor
    4 hours ago










  • Have you done apt-get update before trying to install?
    – sebasth
    4 hours ago










  • Yes, of course, apt-get update was done before install.
    – klor
    4 hours ago










  • What’s the output of apt policy perl perl-base?
    – Stephen Kitt
    4 hours ago












up vote
1
down vote

favorite
2









up vote
1
down vote

favorite
2






2





Using Debian 9.5, fresh install. I want to install mysql-server, but I run into dependency problems.



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: default-mysql-server but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

apt-get install mysql-server default-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:
default-mysql-server : Depends: mariadb-server-10.1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install mysql-server default-mysql-server mariadb-server-10.1
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:
mariadb-server-10.1 : Depends: libdbi-perl but it is not going to be installed
Recommends: libhtml-template-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install mysql-server default-mysql-server mariadb-server-10.1 libhtml-template-perl
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:
libhtml-template-perl : Depends: libcgi-pm-perl but it is not going to be installed or
perl (< 5.19) but 5.26.2-7 is to be installed
mariadb-server-10.1 : Depends: libdbi-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install mysql-server default-mysql-server mariadb-server-10.1 libdbi-perl
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:
libdbi-perl : Depends: perlapi-5.24.1
E: Unable to correct problems, you have held broken packages.


EDIT1: apt-cache policy:



apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://security.debian.org/debian-security stretch/updates/contrib amd64 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=contrib,b=amd64
origin security.debian.org
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=amd64
origin security.debian.org
500 http://deb.debian.org/debian stretch-updates/main amd64 Packages
release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian stretch/main amd64 Packages
release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
origin deb.debian.org
Pinned packages:


EDIT2: apt policy perl perl-base:



apt policy perl perl-base
perl:
Installed: 5.26.2-7
Candidate: 5.26.2-7
Version table:
*** 5.26.2-7 100
100 /var/lib/dpkg/status
5.24.1-3+deb9u4 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
perl-base:
Installed: 5.26.2-7
Candidate: 5.26.2-7
Version table:
*** 5.26.2-7 100
100 /var/lib/dpkg/status
5.24.1-3+deb9u4 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages


How can I fix these dependency problems?










share|improve this question















Using Debian 9.5, fresh install. I want to install mysql-server, but I run into dependency problems.



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: default-mysql-server but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

apt-get install mysql-server default-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:
default-mysql-server : Depends: mariadb-server-10.1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install mysql-server default-mysql-server mariadb-server-10.1
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:
mariadb-server-10.1 : Depends: libdbi-perl but it is not going to be installed
Recommends: libhtml-template-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install mysql-server default-mysql-server mariadb-server-10.1 libhtml-template-perl
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:
libhtml-template-perl : Depends: libcgi-pm-perl but it is not going to be installed or
perl (< 5.19) but 5.26.2-7 is to be installed
mariadb-server-10.1 : Depends: libdbi-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install mysql-server default-mysql-server mariadb-server-10.1 libdbi-perl
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:
libdbi-perl : Depends: perlapi-5.24.1
E: Unable to correct problems, you have held broken packages.


EDIT1: apt-cache policy:



apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://security.debian.org/debian-security stretch/updates/contrib amd64 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=contrib,b=amd64
origin security.debian.org
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=amd64
origin security.debian.org
500 http://deb.debian.org/debian stretch-updates/main amd64 Packages
release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian stretch/main amd64 Packages
release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
origin deb.debian.org
Pinned packages:


EDIT2: apt policy perl perl-base:



apt policy perl perl-base
perl:
Installed: 5.26.2-7
Candidate: 5.26.2-7
Version table:
*** 5.26.2-7 100
100 /var/lib/dpkg/status
5.24.1-3+deb9u4 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
perl-base:
Installed: 5.26.2-7
Candidate: 5.26.2-7
Version table:
*** 5.26.2-7 100
100 /var/lib/dpkg/status
5.24.1-3+deb9u4 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages


How can I fix these dependency problems?







debian apt mysql dependencies debian-stretch






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 3 hours ago

























asked 4 hours ago









klor

159113




159113











  • Did you add additional repositories? Can you add the output of apt-cache policy to your post?
    – jordanm
    4 hours ago










  • Ok, added apt-cache policy output.
    – klor
    4 hours ago










  • Have you done apt-get update before trying to install?
    – sebasth
    4 hours ago










  • Yes, of course, apt-get update was done before install.
    – klor
    4 hours ago










  • What’s the output of apt policy perl perl-base?
    – Stephen Kitt
    4 hours ago
















  • Did you add additional repositories? Can you add the output of apt-cache policy to your post?
    – jordanm
    4 hours ago










  • Ok, added apt-cache policy output.
    – klor
    4 hours ago










  • Have you done apt-get update before trying to install?
    – sebasth
    4 hours ago










  • Yes, of course, apt-get update was done before install.
    – klor
    4 hours ago










  • What’s the output of apt policy perl perl-base?
    – Stephen Kitt
    4 hours ago















Did you add additional repositories? Can you add the output of apt-cache policy to your post?
– jordanm
4 hours ago




Did you add additional repositories? Can you add the output of apt-cache policy to your post?
– jordanm
4 hours ago












Ok, added apt-cache policy output.
– klor
4 hours ago




Ok, added apt-cache policy output.
– klor
4 hours ago












Have you done apt-get update before trying to install?
– sebasth
4 hours ago




Have you done apt-get update before trying to install?
– sebasth
4 hours ago












Yes, of course, apt-get update was done before install.
– klor
4 hours ago




Yes, of course, apt-get update was done before install.
– klor
4 hours ago












What’s the output of apt policy perl perl-base?
– Stephen Kitt
4 hours ago




What’s the output of apt policy perl perl-base?
– Stephen Kitt
4 hours ago










2 Answers
2






active

oldest

votes

















up vote
3
down vote



accepted










As indicated by your apt policy perl perl-base output, and pointed out by jordanm, your system has the Buster version of Perl, not the Debian 9 version. So your system isn’t really a “fresh install” of Debian 9.5; and since Perl is such an important component of a Debian setup, it’s likely there are many other packages which have been upgraded to the Buster version.



This Perl mismatch is the reason you can’t install the MySQL packages.



I’ll assume this is a recent installation and therefore you don’t have too much invested in it; so jordanm’s recommendation to re-install is probably the best solution in this case. Debian 9 and Buster have diverged quite a bit, so rolling back could become rather complicated, especially since you’ve upgraded Perl. Removing mc certainly won’t be sufficient.



In future, don’t mix stable and testing. If you run into a bug which prevents you from using a package, file a bug (reportbug mc); if it’s severe enough it could qualify for a stable update. You could also ask for a backport; that would get you the current Buster version of mc, rebuilt for Debian 9.






share|improve this answer



























    up vote
    1
    down vote













    I executed the following commands successfully based on accepted solution:



    wget http://ftp.debian.org/debian/pool/main/p/perl/perl-base_5.24.1-3+deb9u4_amd64.deb
    sudo dpkg -i perl-base*deb
    dpkg: warning: downgrading perl-base from 5.26.2-7 to 5.24.1-3+deb9u4
    (Reading database ... 38749 files and directories currently installed.)
    Preparing to unpack perl-base_5.24.1-3+deb9u4_amd64.deb ...
    Unpacking perl-base (5.24.1-3+deb9u4) over (5.26.2-7) ...
    Setting up perl-base (5.24.1-3+deb9u4) ...
    Processing triggers for man-db (2.7.6.1-2) ...
    sudo apt-get install mysql-server
    sudo apt --fix-broken install
    sudo apt autoremove
    sudo apt-get install mysql-server
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    mysql-server is already the newest version (5.5.9999+default).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


    Result:



    dpkg -l perl-base
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Architecture Description
    +++-=====================================================-===============================-===============================-===============================================================================================================
    ii perl-base 5.24.1-3+deb9u4 amd64 minimal Perl system


    dpkg -l mysql-server
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Architecture Description
    +++-=====================================================-===============================-===============================-===============================================================================================================
    ii mysql-server 5.5.9999+default amd64 MySQL database server binaries and system database setup [transitional]





    share|improve this answer




















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f470903%2ferror-installing-mysql-server-on-debian-9-stretch-dependency-problems%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote



      accepted










      As indicated by your apt policy perl perl-base output, and pointed out by jordanm, your system has the Buster version of Perl, not the Debian 9 version. So your system isn’t really a “fresh install” of Debian 9.5; and since Perl is such an important component of a Debian setup, it’s likely there are many other packages which have been upgraded to the Buster version.



      This Perl mismatch is the reason you can’t install the MySQL packages.



      I’ll assume this is a recent installation and therefore you don’t have too much invested in it; so jordanm’s recommendation to re-install is probably the best solution in this case. Debian 9 and Buster have diverged quite a bit, so rolling back could become rather complicated, especially since you’ve upgraded Perl. Removing mc certainly won’t be sufficient.



      In future, don’t mix stable and testing. If you run into a bug which prevents you from using a package, file a bug (reportbug mc); if it’s severe enough it could qualify for a stable update. You could also ask for a backport; that would get you the current Buster version of mc, rebuilt for Debian 9.






      share|improve this answer
























        up vote
        3
        down vote



        accepted










        As indicated by your apt policy perl perl-base output, and pointed out by jordanm, your system has the Buster version of Perl, not the Debian 9 version. So your system isn’t really a “fresh install” of Debian 9.5; and since Perl is such an important component of a Debian setup, it’s likely there are many other packages which have been upgraded to the Buster version.



        This Perl mismatch is the reason you can’t install the MySQL packages.



        I’ll assume this is a recent installation and therefore you don’t have too much invested in it; so jordanm’s recommendation to re-install is probably the best solution in this case. Debian 9 and Buster have diverged quite a bit, so rolling back could become rather complicated, especially since you’ve upgraded Perl. Removing mc certainly won’t be sufficient.



        In future, don’t mix stable and testing. If you run into a bug which prevents you from using a package, file a bug (reportbug mc); if it’s severe enough it could qualify for a stable update. You could also ask for a backport; that would get you the current Buster version of mc, rebuilt for Debian 9.






        share|improve this answer






















          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          As indicated by your apt policy perl perl-base output, and pointed out by jordanm, your system has the Buster version of Perl, not the Debian 9 version. So your system isn’t really a “fresh install” of Debian 9.5; and since Perl is such an important component of a Debian setup, it’s likely there are many other packages which have been upgraded to the Buster version.



          This Perl mismatch is the reason you can’t install the MySQL packages.



          I’ll assume this is a recent installation and therefore you don’t have too much invested in it; so jordanm’s recommendation to re-install is probably the best solution in this case. Debian 9 and Buster have diverged quite a bit, so rolling back could become rather complicated, especially since you’ve upgraded Perl. Removing mc certainly won’t be sufficient.



          In future, don’t mix stable and testing. If you run into a bug which prevents you from using a package, file a bug (reportbug mc); if it’s severe enough it could qualify for a stable update. You could also ask for a backport; that would get you the current Buster version of mc, rebuilt for Debian 9.






          share|improve this answer












          As indicated by your apt policy perl perl-base output, and pointed out by jordanm, your system has the Buster version of Perl, not the Debian 9 version. So your system isn’t really a “fresh install” of Debian 9.5; and since Perl is such an important component of a Debian setup, it’s likely there are many other packages which have been upgraded to the Buster version.



          This Perl mismatch is the reason you can’t install the MySQL packages.



          I’ll assume this is a recent installation and therefore you don’t have too much invested in it; so jordanm’s recommendation to re-install is probably the best solution in this case. Debian 9 and Buster have diverged quite a bit, so rolling back could become rather complicated, especially since you’ve upgraded Perl. Removing mc certainly won’t be sufficient.



          In future, don’t mix stable and testing. If you run into a bug which prevents you from using a package, file a bug (reportbug mc); if it’s severe enough it could qualify for a stable update. You could also ask for a backport; that would get you the current Buster version of mc, rebuilt for Debian 9.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 hours ago









          Stephen Kitt

          146k22321386




          146k22321386






















              up vote
              1
              down vote













              I executed the following commands successfully based on accepted solution:



              wget http://ftp.debian.org/debian/pool/main/p/perl/perl-base_5.24.1-3+deb9u4_amd64.deb
              sudo dpkg -i perl-base*deb
              dpkg: warning: downgrading perl-base from 5.26.2-7 to 5.24.1-3+deb9u4
              (Reading database ... 38749 files and directories currently installed.)
              Preparing to unpack perl-base_5.24.1-3+deb9u4_amd64.deb ...
              Unpacking perl-base (5.24.1-3+deb9u4) over (5.26.2-7) ...
              Setting up perl-base (5.24.1-3+deb9u4) ...
              Processing triggers for man-db (2.7.6.1-2) ...
              sudo apt-get install mysql-server
              sudo apt --fix-broken install
              sudo apt autoremove
              sudo apt-get install mysql-server
              Reading package lists... Done
              Building dependency tree
              Reading state information... Done
              mysql-server is already the newest version (5.5.9999+default).
              0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


              Result:



              dpkg -l perl-base
              Desired=Unknown/Install/Remove/Purge/Hold
              | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
              |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
              ||/ Name Version Architecture Description
              +++-=====================================================-===============================-===============================-===============================================================================================================
              ii perl-base 5.24.1-3+deb9u4 amd64 minimal Perl system


              dpkg -l mysql-server
              Desired=Unknown/Install/Remove/Purge/Hold
              | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
              |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
              ||/ Name Version Architecture Description
              +++-=====================================================-===============================-===============================-===============================================================================================================
              ii mysql-server 5.5.9999+default amd64 MySQL database server binaries and system database setup [transitional]





              share|improve this answer
























                up vote
                1
                down vote













                I executed the following commands successfully based on accepted solution:



                wget http://ftp.debian.org/debian/pool/main/p/perl/perl-base_5.24.1-3+deb9u4_amd64.deb
                sudo dpkg -i perl-base*deb
                dpkg: warning: downgrading perl-base from 5.26.2-7 to 5.24.1-3+deb9u4
                (Reading database ... 38749 files and directories currently installed.)
                Preparing to unpack perl-base_5.24.1-3+deb9u4_amd64.deb ...
                Unpacking perl-base (5.24.1-3+deb9u4) over (5.26.2-7) ...
                Setting up perl-base (5.24.1-3+deb9u4) ...
                Processing triggers for man-db (2.7.6.1-2) ...
                sudo apt-get install mysql-server
                sudo apt --fix-broken install
                sudo apt autoremove
                sudo apt-get install mysql-server
                Reading package lists... Done
                Building dependency tree
                Reading state information... Done
                mysql-server is already the newest version (5.5.9999+default).
                0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


                Result:



                dpkg -l perl-base
                Desired=Unknown/Install/Remove/Purge/Hold
                | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
                |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
                ||/ Name Version Architecture Description
                +++-=====================================================-===============================-===============================-===============================================================================================================
                ii perl-base 5.24.1-3+deb9u4 amd64 minimal Perl system


                dpkg -l mysql-server
                Desired=Unknown/Install/Remove/Purge/Hold
                | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
                |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
                ||/ Name Version Architecture Description
                +++-=====================================================-===============================-===============================-===============================================================================================================
                ii mysql-server 5.5.9999+default amd64 MySQL database server binaries and system database setup [transitional]





                share|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  I executed the following commands successfully based on accepted solution:



                  wget http://ftp.debian.org/debian/pool/main/p/perl/perl-base_5.24.1-3+deb9u4_amd64.deb
                  sudo dpkg -i perl-base*deb
                  dpkg: warning: downgrading perl-base from 5.26.2-7 to 5.24.1-3+deb9u4
                  (Reading database ... 38749 files and directories currently installed.)
                  Preparing to unpack perl-base_5.24.1-3+deb9u4_amd64.deb ...
                  Unpacking perl-base (5.24.1-3+deb9u4) over (5.26.2-7) ...
                  Setting up perl-base (5.24.1-3+deb9u4) ...
                  Processing triggers for man-db (2.7.6.1-2) ...
                  sudo apt-get install mysql-server
                  sudo apt --fix-broken install
                  sudo apt autoremove
                  sudo apt-get install mysql-server
                  Reading package lists... Done
                  Building dependency tree
                  Reading state information... Done
                  mysql-server is already the newest version (5.5.9999+default).
                  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


                  Result:



                  dpkg -l perl-base
                  Desired=Unknown/Install/Remove/Purge/Hold
                  | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
                  |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
                  ||/ Name Version Architecture Description
                  +++-=====================================================-===============================-===============================-===============================================================================================================
                  ii perl-base 5.24.1-3+deb9u4 amd64 minimal Perl system


                  dpkg -l mysql-server
                  Desired=Unknown/Install/Remove/Purge/Hold
                  | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
                  |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
                  ||/ Name Version Architecture Description
                  +++-=====================================================-===============================-===============================-===============================================================================================================
                  ii mysql-server 5.5.9999+default amd64 MySQL database server binaries and system database setup [transitional]





                  share|improve this answer












                  I executed the following commands successfully based on accepted solution:



                  wget http://ftp.debian.org/debian/pool/main/p/perl/perl-base_5.24.1-3+deb9u4_amd64.deb
                  sudo dpkg -i perl-base*deb
                  dpkg: warning: downgrading perl-base from 5.26.2-7 to 5.24.1-3+deb9u4
                  (Reading database ... 38749 files and directories currently installed.)
                  Preparing to unpack perl-base_5.24.1-3+deb9u4_amd64.deb ...
                  Unpacking perl-base (5.24.1-3+deb9u4) over (5.26.2-7) ...
                  Setting up perl-base (5.24.1-3+deb9u4) ...
                  Processing triggers for man-db (2.7.6.1-2) ...
                  sudo apt-get install mysql-server
                  sudo apt --fix-broken install
                  sudo apt autoremove
                  sudo apt-get install mysql-server
                  Reading package lists... Done
                  Building dependency tree
                  Reading state information... Done
                  mysql-server is already the newest version (5.5.9999+default).
                  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


                  Result:



                  dpkg -l perl-base
                  Desired=Unknown/Install/Remove/Purge/Hold
                  | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
                  |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
                  ||/ Name Version Architecture Description
                  +++-=====================================================-===============================-===============================-===============================================================================================================
                  ii perl-base 5.24.1-3+deb9u4 amd64 minimal Perl system


                  dpkg -l mysql-server
                  Desired=Unknown/Install/Remove/Purge/Hold
                  | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
                  |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
                  ||/ Name Version Architecture Description
                  +++-=====================================================-===============================-===============================-===============================================================================================================
                  ii mysql-server 5.5.9999+default amd64 MySQL database server binaries and system database setup [transitional]






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 2 hours ago









                  klor

                  159113




                  159113



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f470903%2ferror-installing-mysql-server-on-debian-9-stretch-dependency-problems%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Comments

                      Popular posts from this blog

                      What does second last employer means? [closed]

                      Installing NextGIS Connect into QGIS 3?

                      One-line joke