繁体   English   中英

每当我运行“apt-get install php5-gd php-mysql”时,它在Ubuntu 14.04上声明“无法找到包php-mysql”

[英]Whenever I run “apt-get install php5-gd php-mysql” it states “Unable to locate package php-mysql” on Ubuntu 14.04

我正在尝试运行该命令

apt-get install php5-gd php-mysql

但每当我运行命令时,它都说明了这一点:

E: Unable to locate package php-mysql

我的Dedicated Server正在运行Ubuntu 14.04,它由So You Start托管。

问题是,它之前是工作,还有java,mysql和php。 这可能只是需要修复的更大问题的副作用吗? 当我尝试安装java时,会显示:

apt-get install openjdk-7-jre-headless
Reading package lists... Done
Building dependency tree
Reading state information... Done
openjdk-7-jre-headless is already the newest version.
The following packages were automatically installed and are no longer                        required:
libdbi-perl libterm-readkey-perl mysql-client-core-5.5
Use 'apt-get autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up oracle-java8-installer (8u121-1~webupd8~0) ...
Installing from local file /var/cache/oracle-jdk8-installer/jdk-8u121-linux-           x64.tar.gz
Removing outdated cached downloads...
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/ControlPanel     to provide /usr/bin/ControlPanel (ControlPanel) in auto mode
update-alternatives: error: error creating symbolic link     `/etc/alternatives/ControlPanel.dpkg-tmp': No such file or directory
No apport report written because the error message indicates it's a follow-    up error from a previous failure.
                        dpkg: error processing package oracle-java8-    installer (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of oracle-java8-set-default:
 oracle-java8-set-default depends on oracle-java8-installer; however:
  Package oracle-java8-installer is not configured yet.

dpkg: error processing package oracle-java8-set-default (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 oracle-java8-installer
 oracle-java8-set-default
E: Sub-process /usr/bin/dpkg returned an error code (1)

我在14.04, php5-mysql很好:

$ apt-cache search php5-mysql
php5-mysql - MySQL module for php5
php5-mysqlnd - MySQL module for php5 (Native Driver)
php5-mysqlnd-ms - MySQL replication and load balancing module for PHP

在安装之前尝试先做更新:

sudo apt-get update
sudo apt-get install php5-mysql

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM