Kirjoittaja Aihe: MySQL paketti ei asennu  (Luettu 1884 kertaa)

macdrk

  • Käyttäjä
  • Viestejä: 2
    • Profiili
MySQL paketti ei asennu
« : 21.01.06 - klo:19.51 »
apt-get install mysql-server-4.1 tuottaa seuraavan tuloksen:
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-4.1: Depends: mysql-common-4.1 (>= 4.1.12-1ubuntu3.1) but it is not installable
                    Depends: mysql-client-4.1 (>= 4.1.12-1ubuntu3.1) but it is not going to be installed
                    Depends: libdbi-perl but it is not installable
E: Broken packages


Tässä vielä käytössä olevista repositorieista:
deb http://fi.archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu breezy-updates main restricted
 deb http://security.ubuntu.com/ubuntu breezy-security universe
 deb-src http://security.ubuntu.com/ubuntu breezy-security universe
deb http://archive.ubuntu.com/ubuntu/ breezy universe restricted

Ja pakettilistat on päivitetty viimeisimpiin versioihin apt-get updatella. Missä mahtaa olla vika. Miksi MySQL ei asennu?

Käytössä oleva versio on Ubuntu 5.1 (i386).

//Macdrk
« Viimeksi muokattu: 21.01.06 - klo:20.02 kirjoittanut macdrk »

juyli

  • Vieras
Re: MySQL paketti ei asennu
« Vastaus #1 : 21.01.06 - klo:20.44 »
apt-get install mysql-server-4.1 tuottaa seuraavan tuloksen:
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.


Ööhhh... Pistinpä testiin - ja kyllä asennus toimi. Itse ohjelman toimivuudesta en mitään sano.
 sudo apt-get install mysql-server-4.1
Luetaan pakettiluetteloita... Valmis
Muodostetaan riippuvuussuhteiden puu... Valmis
Seuraavat ylimääräiset paketit on merkitty asennettaviksi:
  libdbd-mysql-perl libdbi-perl liblockfile1 libnet-daemon-perl libplrpc-perl
  mailx mysql-client-4.1 postfix
Ehdotetut paketit:
  dbishell libcompress-zlib-perl postfix-mysql postfix-pgsql postfix-ldap
  postfix-pcre
Suositellut paketit:
  resolvconf
...
Ote tiedostosta /etc/apt/sources.list
Koodia: [Valitse]
deb http://fi.archive.ubuntu.com/ubuntu breezy main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu breezy main restricted
# Major bug fix updates produced after the final release of the
## distribution.
deb http://fi.archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu breezy-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://fi.archive.ubuntu.com/ubuntu breezy universe
deb-src http://fi.archive.ubuntu.com/ubuntu breezy universe
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://fi.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted

deb http://security.ubuntu.com/ubuntu breezy-security universe
deb-src http://security.ubuntu.com/ubuntu breezy-security universe
## Backports
deb http://de.archive.ubuntu.com/ubuntu breezy-backports main universe multiverse restricted
deb-src http://de.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
#backports-extras
deb http://ubuntu-backports.mirrormax.net/ breezy-extras main universe multiverse restricted
deb http://ubuntu-backports.mirrormax.net/ breezy-extras-staging main universe multiverse restricted

Ja jatkokysymykseksi: kuinka saan sql-server-4.1:n lisukkeineen poistettua järjestelmästä? ;)

macdrk

  • Käyttäjä
  • Viestejä: 2
    • Profiili
Re: MySQL paketti ei asennu
« Vastaus #2 : 21.01.06 - klo:21.19 »
Kiitoksia. Vika oli selkeästi siinä, että haluamiani paketteja ei löytynyt aktiivisina olevista repositoreista. Lisäsin muutamat ratkaisevat rivit sources.listiin ja perään apt-get update. Tämän jälkeen homma pelasi mainosti. Vielä kun keksisi miten kummassa saadaan ensinnäkin PHP toimimaan Apachen kanssa ja tämän jälkeen vielä Apache+PHP+MySQL toimimaan yhdessä. Ilmeisesti Ubuntussa kun ei olisi tarkoitus liiemmin konffitiedostoja käpistellä ja siihen olen tottunut. Ainakin joissain Ubuntun konffitiedostoissa kun tuntuu olevan varotus, että niitä ei pitäisi editoida vaan järjestelmä itse hoitaa asiat kuntoon.

Tämä on ensimmäinen kerta kun yritän käyttää automaattisesti itsensä päivittävää Linuxia ja valmiiksi käännettyjä softia. Alku tuntuu hankalammalta kuin Slackware+itse kääntäminen, mutta pitkällä tähtäimellä tässä pitäisi saavuttaa huomattavia etuja.

//Macdrk