1
我試圖運行命令每當我跑 「的apt-get安裝PHP5-GD PHP MySQL的」 它指出 「無法找到包php-mysql的」 在Ubuntu 14.04
apt-get install php5-gd php-mysql
但每當我跑它的狀態如下:
E: Unable to locate package php-mysql
我的專用服務器運行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)
'sudo apt-get install php5-mysql' –
Returns this:閱讀軟件包列表...完成 Building dependency tree 閱讀sta te信息...完成 包php5-mysql不可用,但被其他包引用。 這可能意味着包缺失,已經過時,或者 只能從其他來源獲得 E:包'php5-mysql'沒有安裝候選人 – Tile124
嘗試用'php'替換'php5' - 我認爲最新Ubuntu現在在PHP 7上,所以'5'組件應該/應該被刪除。 – halfer