Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql Perlapi-5.10.1,但不可安装_Mysql_Linux_Ubuntu_Bugzilla - Fatal编程技术网

Mysql Perlapi-5.10.1,但不可安装

Mysql Perlapi-5.10.1,但不可安装,mysql,linux,ubuntu,bugzilla,Mysql,Linux,Ubuntu,Bugzilla,我的Ubuntu安装有问题。我是Ubuntu环境的新手。我不知道如何解决这个问题。我想在我的Ubuntu上安装mysql服务器,但我遇到了这些问题 下面是我在sudo apt get install mysql server之后得到的一个: sudo apt-get install mysql-server Reading package lists... Done Building dependency tree Reading state information... Done

我的Ubuntu安装有问题。我是Ubuntu环境的新手。我不知道如何解决这个问题。我想在我的Ubuntu上安装mysql服务器,但我遇到了这些问题

下面是我在
sudo apt get install mysql server
之后得到的一个:

sudo apt-get install mysql-server
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:
libwx-perl : Depends: perlapi-5.10.1 but it is not installable
mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
之后,我尝试在我的终端中运行
sudo apt get-f install
命令,得到以下结果:

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:
language-pack-kde-en libpisock9 thunderbird-locale-en-gb
language-pack-kde-en-base kde-l10n-engb thunderbird-locale-en-us
libcompfaceg1 thunderbird-locale-en libetpan15
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libwx-perl
The following packages will be upgraded:
libwx-perl
1   upgraded, 0 newly installed, 0 to remove and 326 not upgraded.
1   not fully installed or removed.
Need to get 0 B/1,674 kB of archives.
After this operation, 591 kB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of libwx-perl:
libwx-perl depends on perlapi-5.10.1; however:
Package perlapi-5.10.1 is not installed.
dpkg: error processing libwx-perl (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
libwx-perl
E: Sub-process /usr/bin/dpkg returned an error code (1)
我该如何解决这个问题?我想在我的Ubuntu上安装Bugzilla,但它需要MySQL和Apache2。但是由于这个问题,我不能同时安装这两个

aptitude
The program 'aptitude' is currently not installed.  You can install it by typing:
sudo apt-get install aptitude
sudo apt-get install aptitude 
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:
aptitude : Depends: libboost-iostreams1.46.1 (>= 1.46.1-1) but it is not going to be installed
Depends: libcwidget3 but it is not going to be installed
Depends: libept1.4.12 but it is not going to be installed
Recommends: libparse-debianchangelog-perl but it is not going to be installed
libwx-perl : Depends: perlapi-5.10.1 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


sudo apt-cache policy perlapi
N: Unable to locate package perlapi

sudo apt-get --purge remove libwx-perl
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:
libwx-perl-processstream-perl : Depends: libwx-perl but it is not going to be installed
padre : Depends: libwx-perl (>= 0.91) but it is not going to be installed
Recommends: libformat-human-bytes-perl (>= 0.06) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


sudo apt-get dist-upgrade
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:
libwx-perl : Depends: perlapi-5.10.1 but it is not installable
E: Unmet dependencies. Try using -f.
都有同样的问题

这是我的来源。列表文件:

# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release i386 (20130213)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe

## 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 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## 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://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main
在我执行之后

sudo dpkg --purge libwx-perl
这就是我得到的:

sudo dpkg --purge libwx-perl
dpkg: dependency problems prevent removal of libwx-perl:
libwx-perl-processstream-perl depends on libwx-perl.
padre depends on libwx-perl (>= 0.91); however:
Package libwx-perl is to be removed.
dpkg: error processing libwx-perl (--purge):
dependency problems - not removing
Errors were encountered while processing:
libwx-perl
进一步:

sudo dpkg --purge libwx-perl-processstream-perl libwx-perl
dpkg: dependency problems prevent removal of libwx-perl-processstream-perl:
padre depends on libwx-perl-processstream-perl (>= 0.29); however:
Package libwx-perl-processstream-perl is to be removed.
dpkg: error processing libwx-perl-processstream-perl (--purge):
dependency problems - not removing
dpkg: dependency problems prevent removal of libwx-perl:
libwx-perl-processstream-perl depends on libwx-perl.
padre depends on libwx-perl (>= 0.91); however:
Package libwx-perl is to be removed.
dpkg: error processing libwx-perl (--purge):
dependency problems - not removing
Errors were encountered while processing:
libwx-perl-processstream-perl
libwx-perl

使用
aptitude
而不是
apt-get
,毫无疑问,您甚至可以拥有一个完整的gui。解决依赖问题的能力要高得多,花时间去学习吧!(首先用
+
命令安装perlapi-5.10.1`,并查看损坏的pkg或未满足的dep。要获得更多帮助,请告诉您是否使用pinning,您的apt源列表…apt系统顶部还有另一个工具,它是“打开终端,然后运行”,就是它。
apt缓存策略perlapi
命令可以帮助您了解插件的版本。)可安装。您需要的版本位于
ubuntu
lucid`,它是您的ubuntu版本吗?请尝试删除
libwx perl
,或者按照建议尝试使用pt get autoremove`或
pt get purge libwx perl
删除它