简体   繁体   English

无法在 ubuntu 14.04 中安装 phpmyadmin

[英]cannot install phpmyadmin in ubuntu 14.04

I have installed phpmyadmin in ubuntu before.我之前在 ubuntu 中安装过 phpmyadmin。 But now it seems like not possible.不过现在好像不太可能了。 I am stuck with some oracle-java6-installer failure.遇到了一些oracle-java6-installer故障。

I have run sudo apt-get update and then a sudo apt-get install phpmyadmin as usual.我像往常一样运行了sudo apt-get update ,然后运行了sudo apt-get install phpmyadmin But the following error occurs and the installation fails.但是出现以下错误,安装失败。

Preparing to unpack .../phpmyadmin_4%3a4.0.10-1_all.deb ...准备解压.../phpmyadmin_4%3a4.0.10-1_all.deb ...
Unpacking phpmyadmin (4:4.0.10-1) ...解压 phpmyadmin (4:4.0.10-1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...处理 hicolor-icon-theme (0.13-1) 的触发器...
Processing triggers for doc-base (0.10.5) ...处理 doc-base (0.10.5) 的触发器...
Processing 1 added doc-base file...正在处理 1 个添加的文档库文件...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...处理 man-db (2.6.7.1-1ubuntu1) 的触发器...
Setting up oracle-java6-installer (6u45-0~webupd8~8) ...设置 oracle-java6-installer (6u45-0~webupd8~8) ...
Downloading Oracle Java 6...正在下载 Oracle Java 6...
--2017-10-25 09:13:20-- http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin --2017-10-25 09:13:20-- http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
Resolving download.oracle.com (download.oracle.com)... 184.25.108.41, 184.25.108.17解析download.oracle.com(download.oracle.com)... 184.25.108.41, 184.25.108.17
Connecting to download.oracle.com连接到 download.oracle.com
(download.oracle.com)|184.25.108.41|:80... connected. (download.oracle.com)|184.25.108.41|:80... 已连接。
HTTP request sent, awaiting response... 302 Moved Temporarily HTTP 请求已发送,正在等待响应... 302 临时移动
Location: https://edelivery.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin [following]位置: https : //edelivery.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin [以下]
--2017-10-25 09:13:20-- https://edelivery.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin --2017-10-25 09:13:20-- https://edelivery.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.65.97.122, 2600:140f:b:184::2d3e, 2600:140f:b:183::2d3e解析edelivery.oracle.com (edelivery.oracle.com)... 23.65.97.122, 2600:140f:b:184::2d3e, 2600:140f:b:183::2d3e
Connecting to edelivery.oracle.com连接到 edelivery.oracle.com
(edelivery.oracle.com)|23.65.97.122|:443... connected. (edelivery.oracle.com)|23.65.97.122|:443... 已连接。
HTTP request sent, awaiting response... 302 Moved Temporarily HTTP 请求已发送,正在等待响应... 302 临时移动
Location: http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin?AuthParam=1508903146_f5ba776a72e71785aa3526c9fb49f911 [following]位置: http : //download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin?AuthParam=1508903146_f5ba776a72e71785aa3526c9fb49f911 [follow]
--2017-10-25 09:13:23-- http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin?AuthParam=1508903146_f5ba776a72e71785aa3526c9fb49f911 --2017-10-25 09:13:23-- http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin?AuthParam=1508903146_f5ba776a72e731b428c
Connecting to download.oracle.com连接到 download.oracle.com
(download.oracle.com)|184.25.108.41|:80... connected. (download.oracle.com)|184.25.108.41|:80... 已连接。
HTTP request sent, awaiting response... 404 Not Found已发送 HTTP 请求,正在等待响应... 404 Not Found
2017-10-25 09:13:26 ERROR 404: Not Found. 2017-10-25 09:13:26 错误 404:未找到。

download failed下载失败
Oracle JDK 6 is NOT installed.未安装 Oracle JDK 6。
dpkg: error processing package oracle-java6-installer (--configure): dpkg: 错误处理包 oracle-java6-installer (--configure):
subprocess installed post-installation script returned error exit status 1子进程安装后安装脚本返回错误退出状态 1

is there any other way around??有没有其他办法??

Is this is a new server that you are setting up?这是您要设置的新服务器吗? If so- you'll need a complete LAMP stack set up before installing PHP ( L inux/ A pache/ M ySQL and P HP).如果是这样,您将需要在安装 PHP( L inux/ A pache/ M ySQL 和P HP)之前设置完整的 LAMP 堆栈。 If you need directions on that, you can find them here.如果您需要这方面的说明,可以在此处找到它们

You'll also need to make sure you are installing all of this as non-root user with sudo access.您还需要确保以具有 sudo 访问权限的非 root 用户身份安装所有这些。 See why here : 在这里查看原因

The root user is the administrative user in a Linux environment that has very broad privileges. root 用户是 Linux 环境中的管理用户,拥有非常广泛的权限。 Because of the heightened privileges of the root account, you are actually discouraged from using it on a regular basis.由于 root 帐户具有更高的权限,因此实际上不鼓励您定期使用它。 This is because part of the power inherent with the root account is the ability to make very destructive changes, even by accident.这是因为 root 帐户固有的部分权力是能够进行非常具有破坏性的更改,即使是偶然的。

Let me know if this helps.如果这有帮助,请告诉我。

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

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