我提出这个问题是因为我无法在 Ubuntu 18.04 bionic LTS 中安装 phpmyadmin。
我用
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install phpmyadmin
并收到“无法找到包裹”
我在package.ubuntu.com
并将此存储库添加到 sources.list:
mirrors.kernel.org/ubuntu
现在出现依赖项错误。
php-mbstring
php-common
稍后当尝试安装这些时,出现:
php7.2-mbstring
php7.2-common
然后:
0.7.2ubuntu-0 (something like this)
我如何安装 phpmyadmin?
我这样做
sudo apt-get update
所有软件包都已更新
sudo apt-get 升级
0 已更新,0 即将安装新内容,0 待删除,0 未更新
sudo apt-get install phpmyadmin
正在读取软件包列表...已完成创建三个依赖项正在读取状态信息...已完成 E:无法找到软件包 phpmyadmin
答案1
安装
sudo add-apt-repository universe
检查后
apt search phpmyadmin
Sorting... Done
Full Text Search... Done
adminer/bionic 4.6.2-1 all
Web-based database administration tool
phpliteadmin/bionic-security,bionic-updates 1.9.7.1-1ubuntu0.1 all
web-based SQLite database admin tool
phpliteadmin-themes/bionic-security,bionic-updates 1.9.7.1-1ubuntu0.1 all
web-based SQLite database admin tool - themes
phpmyadmin/bionic 4:4.6.6-5 all
MySQL web administration tool
安装后
sudo apt install phpmyadmin
...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2 apache2-bin apache2-data apache2-utils dbconfig-common dbconfig-mysql javascript-common libapache2-mod-php7.2 libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libjs-jquery libjs-sphinxdoc libjs-underscore liblua5.2-0 libsodium23 libzip4 php php-bz2 php-pear
php-php-gettext php-phpseclib php-tcpdf php-zip php7.2 php7.2-bz2 php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline php7.2-zip
Suggested packages:
www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom php-libsodium php-mcrypt php-gmp php-imagick
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils dbconfig-common dbconfig-mysql javascript-common libapache2-mod-php7.2 libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libjs-jquery libjs-sphinxdoc libjs-underscore liblua5.2-0 libsodium23 libzip4 php php-bz2 php-pear
php-php-gettext php-phpseclib php-tcpdf php-zip php7.2 php7.2-bz2 php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline php7.2-zip
phpmyadmin
0 upgraded, 34 newly installed, 0 to remove and 0 not upgraded.
Need to get 18.9 MB of archives.
After this operation, 75.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]
答案2
您可以phpMyAdmin
从默认Ubuntu
存储库安装
sudo apt update
sudo apt install phpmyadmin php-mbstring php-gettext
这文章已经够清楚了。
答案3
您可以phpMyAdmin
从镜像内核适用于 bionic Ubuntu 存储库
sudo apt update
sudo apt install phpmyadmin*
如果你说什么都没做,apt search phpmyadmin
请使用该链接中的正确仓库检查你的仓库。
答案4
解决方案如下(以防链接失效[很好的意见,Melebius]):
*您可以通过在 /etc/apt/sources.list 中添加一行来使用任何列出的镜像,就像这样:
德布http://cz.archive.ubuntu.com/ubuntu仿生主宇宙
用有问题的镜像替换 cz.archive.ubuntu.com/ubuntu。
您可以从以下任意站点的 pool/universe/p/phpmyadmin/ 子目录中下载所需的文件:
https://packages.ubuntu.com/bionic/all/phpmyadmin/download
您应该能够使用任何列出的镜像,只需在您的 /etc/apt/sources.list 中添加一行,就像这样:
deb http://cz.archive.ubuntu.com/ubuntu bionic main universe
cz.archive.ubuntu.com/ubuntu
用有问题的镜子替换。
pool/universe/p/phpmyadmin/
您可以从以下任意站点的子目录中下载所需的文件 :北美
- mirrors.kernel.org/ubuntu
- ftp.osuosl.org/pub/ubuntu
- lug.mtu.edu/ubuntu
- ubuntu.mirrors.tds.net/ubuntu
- ubuntu.secs.oakland.edu
- mirror.mcs.anl.gov/pub/ubuntu
- mirrors.cat.pdx.edu/ubuntu
- ubuntu.cs.utah.edu/ubuntu
- ftp.ussg.iu.edu/linux/ubuntu
- mirrors.xmission.com/ubuntu
- mirrors.cs.wmich.edu/ubuntu
- gulus.USherbrooke.ca/pub/distro/ubuntu
亚洲
- kr.archive.ubuntu.com/ubuntu
- th.archive.ubuntu.com/ubuntu
- mirror.lupaworld.com/ubuntu
- kambing.vlsm.org/ubuntu
- ubuntu.mithril-linux.org/archives
- mirror.in.th/ubuntu
- mirror.rootguide.org/ubuntu
非洲
- za.archive.ubuntu.com/ubuntu
欧洲
- cz.archive.ubuntu.com/ubuntu
- de.archive.ubuntu.com/ubuntu
- dk.archive.ubuntu.com/ubuntu
- es.archive.ubuntu.com/ubuntu
- fr.archive.ubuntu.com/ubuntu
- ge.archive.ubuntu.com/ubuntu
- gr.archive.ubuntu.com/ubuntu
- hr.archive.ubuntu.com/ubuntu
- mt.archive.ubuntu.com/ubuntu
- nl.archive.ubuntu.com/ubuntu
- no.archive.ubuntu.com/ubuntu
- se.archive.ubuntu.com/ubuntu
- yu.archive.ubuntu.com/ubuntu
- nz.archive.ubuntu.com/ubuntu
- nz2.archive.ubuntu.com/ubuntu
- ftp.iinet.net.au/pub/ubuntu
- mirror.optus.net/ubuntu
- ftp.filearena.net/pub/ubuntu
- mirror.pacific.net.au/linux/ubuntu