提前感谢你的帮助。
我的服务器:
我刚刚安装了带有基本软件和 LAMP 的 Ubuntu Server 17.04。(我最初尝试了 18,但由于这个错误(https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1767569)我无法从 USB 设备安装它。
目标是在我当前的内联网中拥有一个本地 Web 服务器。Apache、PHP 和 MySQL 都运行良好。
我已经将 DNS 配置为指向 Web 服务器,并且我获得了 apache 默认站点。打开 phpinfo 时我获得了PHP Version 7.0.15-1ubuntu4
,因此 php7 运行正常。
尚未尝试过 ftp,但可以稍后再尝试。
问题:
我现在需要做的就是让 phpmadmin 运行,因为现在打开 /phpmyadmin 时出现错误,所以我检查了服务器,似乎 phpmyadmin 没有与 LAMP 一起安装(/usr/share/ 中没有 phpmyadmin 文件夹)
到目前为止我已经尝试过:
- 我已将
deb http://us.archive.ubuntu.com/ubuntu/ zesty universe multiverse
和添加deb http://us.archive.ubuntu.com/ubuntu/ zesty-updates universe multiverse
到 repo 列表 - 我已经添加了 phpmyadmin 存储库
sudo add-apt-repository ppa:nijel/phpmyadmin
- 我
apt-get update
已经apt-get upgrade
多次 - 用过的
apt-get install -f
- 还有更多事情我现在记不清了,但后来都记起来了。
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
phpmyadmin : Depends: php but it is not installable
Depends: php-mbstring but it is not installable
Depends: php-xml but it is not installable
Depends: libjs-sphinxdoc (>= 1.0) but it is not installable
Depends: dbconfig-mysql but it is not installable or
dbconfig-no-thanks but it is not installable or
dbconfig-common (< 2.0.0) but it is not installable
Depends: php-php-gettext but it is not installable or
php-gettext (<= 1:7.0) but it is not installable
Depends: php-phpseclib (>= 2.0) but it is not installable
Recommends: php-curl but it is not installable
Recommends: php-gd but it is not installable
Recommends: php-bz2 but it is not installable
Recommends: php-zip but it is not installable
Recommends: php-tcpdf but it is not installable
E: Unable to correct problems, you have held broken packages.
现在,当我发出命令时apt-get install phpmyadmin php php-mbstring php-xml libjs-sphinxdoc dbconfig-mysql php-php-gettext php-phpseclib php-curl php-gd php-bz2 php-zip php-tcpdf
出现以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package php-mbstring is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package php-xml is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libjs-sphinxdoc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package dbconfig-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package php-php-gettext is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package php-phpseclib is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package php-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package php-gd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package php-bz2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package php-zip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package php-tcpdf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'php' has no installation candidate
E: Package 'php-mbstring' has no installation candidate
E: Package 'php-xml' has no installation candidate
E: Package 'libjs-sphinxdoc' has no installation candidate
E: Package 'dbconfig-mysql' has no installation candidate
E: Package 'php-php-gettext' has no installation candidate
E: Package 'php-phpseclib' has no installation candidate
E: Package 'php-curl' has no installation candidate
E: Package 'php-gd' has no installation candidate
E: Package 'php-bz2' has no installation candidate
E: Package 'php-zip' has no installation candidate
E: Package 'php-tcpdf' has no installation candidate
现在我不知道我还能做什么,只能在这里问。我发现很多用户在使用 LAMP 的 Linux 上运行 phpmyadmin 时遇到了问题,但似乎所有这些问题都通过我尝试过的解决方案得到了解决。我非常感谢这里的任何帮助。(如果您问:除了我上面提到的 sources.list 中的更改之外,我没有添加任何其他存储库。)
答案1
好吧,
解决方案就像我在上面的评论中发布的那样。版本 17.04 已过期,因此我找不到任何软件。我重新安装了 16.04 LTS,一切正常。