将 phpmyadmin 安装到 Kali Linux

将 phpmyadmin 安装到 Kali Linux

我想将 phpmyadmin 添加到 Kali Linux。但我收到以下错误。首先,我运行了 apt-get update ,它比以下命令成功运行。这是 apt-get update 的输出

root@kali:~# sudo apt-get update
Hit http://http.kali.org kali InRelease                                        
Hit http://http.kali.org kali/main Sources                                     
Hit http://http.kali.org kali/non-free Sources                                 
Hit http://http.kali.org kali/contrib Sources                                  
Hit http://http.kali.org kali/main i386 Packages                               
Hit http://http.kali.org kali/non-free i386 Packages                           
Hit http://http.kali.org kali/contrib i386 Packages                            
Ign http://dl.google.com stable InRelease                                      
Hit http://dl.google.com stable Release.gpg                          
Hit http://dl.google.com stable Release        
Hit http://dl.google.com stable/main i386 Packages                    
Hit http://security.kali.org kali/updates InRelease                  
Ign http://dl.google.com stable/main Translation-en_IN                  
Ign http://dl.google.com stable/main Translation-en
Hit http://security.kali.org kali/updates/main i386 Packages
Hit http://security.kali.org kali/updates/contrib i386 Packages
Hit http://security.kali.org kali/updates/non-free i386 Packages
Ign http://http.kali.org kali/contrib Translation-en_IN
Ign http://http.kali.org kali/contrib Translation-en
Ign http://http.kali.org kali/main Translation-en_IN
Ign http://http.kali.org kali/main Translation-en
Ign http://http.kali.org kali/non-free Translation-en_IN
Ign http://http.kali.org kali/non-free Translation-en
Ign http://security.kali.org kali/updates/contrib Translation-en_IN
Ign http://security.kali.org kali/updates/contrib Translation-en
Ign http://security.kali.org kali/updates/main Translation-en_IN
Ign http://security.kali.org kali/updates/main Translation-en
Ign http://security.kali.org kali/updates/non-free Translation-en_IN
Ign http://security.kali.org kali/updates/non-free Translation-en
Reading package lists... Done
root@kali:~# 

之后我尝试了以下显示错误! !

root@kali:~# sudo apt-get install phpmyadmin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
dbconfig-common libapache2-mod-php5 libmcrypt4 php5-cli php5-common php5-gd php5-mcrypt php5-mysql
Suggested packages:
php-pear libmcrypt-dev mcrypt
The following NEW packages will be installed:
dbconfig-common libmcrypt4 php5-gd php5-mcrypt phpmyadmin
The following packages will be upgraded:
libapache2-mod-php5 php5-cli php5-common php5-mysql
4 upgraded, 5 newly installed, 0 to remove and 635 not upgraded.
Need to get 5,503 kB/12.0 MB of archives.
After this operation, 17.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://security.kali.org/kali-security/ kali/updates/main phpmyadmin all 4:3.4.11.1-2+deb7u1
Connection failed
Failed to fetch http://security.kali.org/kali-security/pool/main/p/phpmyadmin/phpmyadmin_3.4.11.1-2+deb7u1_all.deb  Connection failed
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

答案1

security.kali.org 网站可能出现了问题。尝试 ping 一下:

[root@fly2 ~]# ping -c 3 security.kali.org
PING security.kali.org (173.246.39.190) 56(84) bytes of data.
64 bytes from http.kali.org (173.246.39.190): icmp_seq=1 ttl=57 time=126 ms
64 bytes from http.kali.org (173.246.39.190): icmp_seq=2 ttl=57 time=127 ms
64 bytes from http.kali.org (173.246.39.190): icmp_seq=3 ttl=57 time=126 ms

这表明该网站可以正常运行。您还可以尝试浏览http://security.kali.org/kali-security/查看是否获得目录列表。如果有效,请再试一次。

相关内容