Find the answer to your Linux question:
Results 1 to 8 of 8
Hello - I am new to Debian, and I've run into some issues trying to install mysql5 with apt-get. I recently put Debian on a PowerPC mac, and installing mysql4 ...
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Location
    Minneapolis, MN
    Posts
    26

    Newbie V.S. apt-get

    Hello -
    I am new to Debian, and I've run into some issues trying to install mysql5 with apt-get. I recently put Debian on a PowerPC mac, and installing mysql4 is fairly easy with apt-get, but not so with mysql5. I edited the sources.list file to include these:

    deb http://backports.org/debian sarge-backports main
    deb-src http://backports.org/debian sarge-backports main

    And then I ran:

    apt-get update

    So far, so good. Running:

    apt-cache search mysql-server

    Returns:

    mysql-server - mysql database server (meta package depending on the latest version)
    mysql-server-4.1 - mysql database server (transitional package)
    mysql-server-5.0 - mysql database server binaries

    So 5.0 appears to be available. Alrighty. So I run:

    apt-get install mysql-server-5.0

    Which gives the following problems:

    Reading Package Lists... Done
    Building Dependency Tree... 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.

    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    mysql-server-5.0: Depends: mysql-client-5.0 (>= 5.0.30-1~bpo.1) but it is not going to be installed
    Depends: libmysqlclient15off (>= 5.0.24-2) but it is not going to be installed
    Depends: lsb-base (>= 3.0-10) but 2.0-7 is to be installed
    PreDepends: mysql-common (>= 5.0.30-1~bpo.1) but 4.0.24-10sarge2 is to be installed
    E: Broken packages

    Can anyone assist me with this? I simply don't know what's going on here ...

    Thanks in advance,

    -- whit

  2. #2
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    try
    Code:
    apt-get -t sarge-backports install mysql-server-5.0
    http://backports.org/dokuwiki/doku.php?id=instructions
    Brilliant Mediocrity - Making Failure Look Good

  3. #3
    Just Joined!
    Join Date
    Mar 2005
    Location
    Minneapolis, MN
    Posts
    26
    Many thanks.

    -- whit

  4. #4
    Just Joined!
    Join Date
    Mar 2005
    Location
    Minneapolis, MN
    Posts
    26
    Hello again,
    I'm having a similar problem, that the previous solution can't fix. In addition to mysql5, I also need php5. So I am trying to install it using the same methods:

    deb http://backports.org/debian sarge-backports main
    deb-src http://backports.org/debian sarge-backports main

    In the sources.list file.

    $ apt-get update

    works great.

    $ apt-cache search php5

    returns:

    php5 - server-side, HTML-embedded scripting language (meta-package)

    as one of the results. Awesome.

    $ apt-get install php5

    gives this:

    Reading Package Lists... Done
    Building Dependency Tree... 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.

    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    php5: Depends: libapache2-mod-php5 (>= 5.2.0-8~bpo.2) but it is not going to be installed or
    libapache-mod-php5 (>= 5.2.0-8~bpo.2) but it is not going to be installed or
    php5-cgi (>= 5.2.0-8~bpo.2) but it is not going to be installed
    Depends: php5-common (>= 5.2.0-8~bpo.2) but it is not going to be installed
    E: Broken packages

    As expected. So I tried the suggested command, (which worked great for mysql, btw) and I get what appears to be the same error.

    $ apt-get -t sarge-backports install php5
    Reading Package Lists... Done
    Building Dependency Tree... 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.

    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    php5: Depends: libapache2-mod-php5 (>= 5.2.0-8~bpo.2) but it is not going to be installed or
    libapache-mod-php5 (>= 5.2.0-8~bpo.2) but it is not going to be installed or
    php5-cgi (>= 5.2.0-8~bpo.2) but it is not going to be installed
    Depends: php5-common (>= 5.2.0-8~bpo.2) but it is not going to be installed
    E: Broken packages

    Can anyone point my in the right direction? Thanks very much, in advance.

    -- whit

  5. #5
    Just Joined!
    Join Date
    Mar 2005
    Location
    Minneapolis, MN
    Posts
    26
    Is there any other information that I could supply that might help to diagnose the problem? Anywhere I should look?

    -- whit

  6. #6
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    that is because that package requires several others from backports. So try
    Code:
    apt-get -t sarge-backports install php5 libapache2-mod-php5 libapache-mod-php5 php5-cgi php5-common
    Brilliant Mediocrity - Making Failure Look Good

  7. #7
    Just Joined!
    Join Date
    Mar 2005
    Location
    Minneapolis, MN
    Posts
    26
    That gave:
    $ apt-get -t sarge-backports install php5 libapache2-mod-php5 libapache-mod-php5 php5-cgi php5-common

    Reading Package Lists... Done
    Building Dependency Tree... 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:
    php5: Depends: libapache2-mod-php5 (>= 5.2.0-8~bpo.2) but 5.1.6-1~bpo.1 is to be installed or
    libapache-mod-php5 (>= 5.2.0-8~bpo.2) but 5.1.6-1~bpo.1 is to be installed or
    php5-cgi (>= 5.2.0-8~bpo.2) but 5.1.6-1~bpo.1 is to be installed
    Depends: php5-common (>= 5.2.0-8~bpo.2) but 5.1.6-1~bpo.1 is to be installed
    E: Broken packages

  8. #8
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    you might try the other method on the link from above and include all those files.
    Brilliant Mediocrity - Making Failure Look Good

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •