破解包错误安装phpmyadmin

时间:2016-07-01 15:28:35

标签: wordpress phpmyadmin copy

我正在手动将wordpress站点复制到digitalocean服务器,并且需要按照技术方法中的描述导入数据库: http://wpencyclopedia.com/enc/index.htm?moving-wordpress.htm

看起来导入数据库需要phpmyadmin(也就是说,我不能通过.sql文件ftp?)

我安装了phpmyadmin,导入没有用,所以我卸载了它,现在再也无法安装了。我收到了这个错误。考虑从头开始使用新的Ubuntu。

zhellman@dev-website:~$ sudo apt-get install phpmyadmin 
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:

phpmyadmin : Depends: php but it is not installable Depends: php-cli but it is not installable Depends: php-mysql but it is not installable Depends: php-json but it is not installable Depends: php-mbstring but it is not installable Depends: php-xml 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 going to be installed E: Unable to correct problems, you have held broken packages.

1 个答案:

答案 0 :(得分:0)

  

看起来导入数据库需要phpmyadmin(也就是说,我不能通过.sql文件ftp?)

据我所知,所有Digital Ocean水滴都是功能齐全的VPS实例,因此您可以完全访问所需的任何内容。如果要将FTP / SFTP / SCP文件发送到本地文件系统并使用mysql命令行客户端导入,那应该没问题。

此外,您可以使用phpMyAdmin“UploadDir”功能上传文件(再次通过SCP,SFTP,FTP或您喜欢的任何其他文件传输方式),然后直接通过phpMyAdmin导入。由于你有命令行访问权限,我个人不会这样做,但你可以。

关于破损的软件包,我能想到的最可能的事情是你可能修改了apt资源列表,引入了不兼容的依赖项。我建议解决一个版本并使用它提供的软件包。您也可以直接下载phpMyAdmin并使用Quick Install guide解压缩到您的网站根目录。