заранее благодарю за любую помощь.
Мой сервер:
Я только что установил Ubuntu Server 17.04 с базовым программным обеспечением и LAMP. (Сначала я попробовал 18, но из-за этой ошибки ( https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1767569 ) я не могу установить его с USB-устройства.
Цель состоит в том, чтобы в моей текущей внутренней сети был локальный веб-сервер. Apache, PHP и MySQL все в порядке.
Я уже настроил свой DNS для указания на веб-сервер, и я получил сайт по умолчанию apache При открытии моего phpinfo я получаю PHP Version 7.0.15-1ubuntu4
, так что php7 работает нормально.
Еще не пробовал ftp, но это можно сделать позже.
Проблема:
Все, что мне сейчас нужно, это запустить phpmadmin, потому что сейчас я получаю сообщение об ошибке при открытии / phpmyadmin. Итак, я проверил сервер, и кажется, что phpmyadmin не установлен вместе с LAMP (без папки phpmyadmin в / usr / share /)
Что я пробовал до сих пор:
deb http://us.archive.ubuntu.com/ubuntu/ zesty universe multiverse
и deb http://us.archive.ubuntu.com/ubuntu/ zesty-updates universe multiverse
в список репо 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
Прямо сейчас я надеваю Не знаю, что еще я могу, но спрашиваю здесь. Я видел, что у многих пользователей уже были проблемы с работой phpmyadmin в Linux с LAMP, но мне кажется, что все эти проблемы были решены с помощью решений, которые я уже пробовал. Я был бы очень признателен за любую помощь здесь. (Если вы спросите: кроме изменений в списке sources.list, о котором я упоминал выше, я не добавил никаких других репозиториев.)
Хорошо,
решение состояло в том точно так же, как я отправил в своем комментарии выше. Версия 17.04 является концом времени жизни, и поэтому я не смог найти любое программное обеспечение. Я переустановил 16.04 LTS, и все работает отлично.