Linux apt-get error

1630 ワード

csh@csh-laptop:~/ejabberd-15.03$ sudo apt-get install mysqlReading package lists... DoneBuilding dependency tree Reading state information... DoneE: Unable to locate package mysqlcsh@csh-laptop:~/ejabberd-15.03$ sudo apt-get install mysql-clientReading package lists... DoneBuilding dependency tree Reading state information... DoneYou might want to run 'apt-get -f install' to correct these:The following packages have unmet dependencies: mysql-client : Depends: mysql-client-5.5 but it is not going to be installed rabbitmq-server : Depends: erlang-nox (>= 1:13.b.3) but it is not going to be installed or esl-erlang but it is not installableE: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
 
解決方法:aptitudeコマンドを使用してmysql-client-5.1をインストール
このツールを使用すると、あるライブラリに依存するライブラリが現在のバージョンと一致しない場合、aptitudeは現在のライブラリのバージョンをダウングレードしようとします.同時に、このライブラリのダウングレードが他のソフトウェアへの依存性に与える影響を解決し、最終的にapt-getがインストールできないソフトウェアのインストールに成功します.
csh@csh-laptop:/etc/apt/sources.list.d$ sudo aptitude install mysql-client-5.1

The following NEW packages will be installed: libdbd-mysql-perl{a} libdbi-perl{a} libmysqlclient16{a} libnet-daemon-perl{a} libplrpc-perl{a} mysql-client-5.1 mysql-client-core-5.1{a} mysql-common{a} The following partially installed packages will be configured: rabbitmq-server{b} 0 packages upgraded, 8 newly installed, 0 to remove and 35 not upgraded.Need to get 11.3MB of archives. After unpacking 27.6MB will be used.