我正在使用几天前安装的 Ubuntu 13.04。我正在尝试安装nodejs
和npm
. 我尝试先从命令行安装,然后卸载它。然后东西坏了。
sudo apt-get install -f nodejs npm
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:
nodejs …
Run Code Online (Sandbox Code Playgroud) 我正在尝试在全新的 Ubuntu 20.04 安装上安装 MySQL 5.7。我按照 Kulfy 在这篇文章中的步骤在Ubuntu 20.04 上安装 MySQL 5.7。我能够安装 mysql-client,但不能安装 mysql-server。
的输出
apt-cache policy mysql-server
Run Code Online (Sandbox Code Playgroud)
是
mysql-server:
Installed: (none)
Candidate: 8.0.19-0ubuntu5
Version table:
8.0.19-0ubuntu5 500
500 http://ro.archive.ubuntu.com/ubuntu focal/main amd64 Packages
500 http://ro.archive.ubuntu.com/ubuntu focal/main i386 Packages
5.7.30-1ubuntu18.04 500
500 http://repo.mysql.com/apt/ubuntu bionic/mysql-5.7 amd64 Packages
5.7.29-0ubuntu0.18.04.1 500
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages
Run Code Online (Sandbox Code Playgroud)
我使用以下命令来安装 mysql-server。
sudo apt install mysql-server=5.7.29-0ubuntu0.18.04.1
Run Code Online (Sandbox Code Playgroud)
上面命令的输出是:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could …
Run Code Online (Sandbox Code Playgroud) 我已经在 Ubuntu 14.04 LTS 服务器上安装了 Mysql-(server/client)-5.6
但对于某些程序我需要 mysql-client(例如 automysqlbackup 和 postfix)
root@server:~# apt-get install automysqlbackup
automysqlbackup : Depends: mysql-client
Run Code Online (Sandbox Code Playgroud)
所以:
root@server:~# apt-get install mysql-client mysql-server
The following packages have unmet dependencies:
mysql-client : Depends: mysql-client-5.5 but it is not going to be installed
mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
Run Code Online (Sandbox Code Playgroud)
和:
root@server:~# apt-get install mysql-client-5.6 mysql-server-5.6
mysql-client-5.6 is already the newest version.
mysql-server-5.6 is already the newest version.
Run Code Online (Sandbox Code Playgroud)
我需要安装 mysql-(server/client)-5.5 和 5.6 吗?
我已经尝试了很多方法来安装 mysql-server。我首先尝试通过执行安装
sudo apt-get install mysql-client-5.5 mysql-server mysql-server-core-5.5
Run Code Online (Sandbox Code Playgroud)
我被要求输入 root 密码,我做到了。但是安装未完成,出现了一些未满足的依赖项。非常类似于这个问题。然后我尝试了不同的组合,未满足的依赖问题消失了,但我开始得到这个
Preparing to unpack .../mysql-server_5.5.43-0ubuntu0.14.04.1_all.deb
Unpacking mysql-server (5.5.43-0ubuntu0.14.04.1) ...
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.5_5.5.43-
0ubuntu0.14.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
我已经尝试通过各种方法删除和清除依赖项,例如在这个问题 2 中。我也尝试通过 Aptitude 执行此操作,并尝试再次安装 mysql-server,但没有成功。请帮帮我!