简体   繁体   English

如何在Ubuntu服务器中安装phpmyadmin

[英]how to install phpmyadmin in ubuntu server

I try to install phpmyadmin in ubuntu server 12.10 , i have try apt-get update then apt-get install phpmyadmin and i have folowing error 我尝试在ubuntu服务器12.10中安装phpmyadmin,我尝试apt-get update然后apt-get install phpmyadmin并且出现以下错误

apt-get install phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package phpmyadmin

this my /etc/apt/sources.list view 这是我的/etc/apt/sources.list视图

# deb cdrom:[Ubuntu-Server 12.10 _Quantal Quetzal_ - Release i386 (20121017.2)]/ quantal main restricted

#deb cdrom:[Ubuntu-Server 12.10 _Quantal Quetzal_ - Release i386 (20121017.2)]/ quantal main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://id.archive.ubuntu.com/ubuntu/ quantal main restricted
deb-src http://id.archive.ubuntu.com/ubuntu/ quantal main restricted

 ## Major bug fix updates produced after the final release of the
 ## distribution.
 deb http://id.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
 deb-src http://id.archive.ubuntu.com/ubuntu/ quantal-updates main restricted

 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
 ## team. Also, please note that software in universe WILL NOT receive any
 ## review or updates from the Ubuntu security team.
 deb http://id.archive.ubuntu.com/ubuntu/ quantal universe
 deb-src http://id.archive.ubuntu.com/ubuntu/ quantal universe
 deb http://id.archive.ubuntu.com/ubuntu/ quantal-updates universe
 deb-src http://id.archive.ubuntu.com/ubuntu/ quantal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://id.archive.ubuntu.com/ubuntu/ quantal multiverse
deb-src http://id.archive.ubuntu.com/ubuntu/ quantal multiverse
deb http://id.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
deb-src http://id.archive.ubuntu.com/ubuntu/ quantal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://id.archive.ubuntu.com/ubuntu/ quantal-backports main restricted      universe multiverse
deb-src http://id.archive.ubuntu.com/ubuntu/ quantal-backports main  restricted universe multiverse

deb http://security.ubuntu.com/ubuntu quantal-security main restricted
deb-src http://security.ubuntu.com/ubuntu quantal-security main restricted
deb http://security.ubuntu.com/ubuntu quantal-security universe
deb-src http://security.ubuntu.com/ubuntu quantal-security universe
deb http://security.ubuntu.com/ubuntu quantal-security multiverse
deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu quantal partner
# deb-src http://archive.canonical.com/ubuntu quantal partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu quantal main
# deb-src http://extras.ubuntu.com/ubuntu quantal main

any help? 有什么帮助吗?

try with this; 试试这个;

sudo apt-get upgrade

sudo apt-get install phpmyadmin

First : ensure the list of available packages is up to date before installing anything new. 首先 :在安装新软件包之前,请确保可用软件包列表是最新的。

sudo apt-get -y update

apt-get -y install phpmyadmin

Second : At the first screen, select apache2 by using the space bar , then hit enter to continue. 第二 :在第一个屏幕上, 使用空格键选择apache2 ,然后按Enter继续。

At the second screen, which asks “configure the database for phpmyadmin with dbconfig-common?”, select Yes, then hit enter to continue. 在第二个屏幕上,询问“使用dbconfig-common配置数据库phpmyadmin吗?”,选择是,然后按Enter继续。

At the third screen enter your MySQL password , then hit enter to continue. 在第三个屏幕上, 输入您的MySQL密码 ,然后按Enter键继续。

Third : Add the following to the bottom of the file "/etc/apache2/apache2.conf": 第三 :将以下内容添加到文件“ /etc/apache2/apache2.conf”的底部:

# phpMyAdmin Configuration
Include /etc/phpmyadmin/apache.conf

save and close the apache.conf file 保存并关闭apache.conf文件

And, Last : 并且,最后:

sudo service apache2 restart

Now it's done. 现在完成了。

try this; 尝试这个;

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install phpmyadmin

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

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