- 安装Redis的日志:
Ign:2 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 InRelease
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy InRelease
Hit:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates InRelease
Hit:4 http://repo.mysql.com/apt/ubuntu jammy InRelease
Hit:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports InRelease
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:7 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 Release
Hit:9 https://packages.clickhouse.com/deb stable InRelease
Hit:10 https://ppa.launchpadcontent.net/openjdk-r/ppa/ubuntu jammy InRelease
Reading package lists... Done
W: http://repo.mysql.com/apt/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://packages.clickhouse.com/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libmysqlclient23 : Depends: mysql-common (>= 8.3.0-1ubuntu22.04) but 5.8+1.0.8 is to be installed
mysql-client : Depends: mysql-community-client (= 8.3.0-1ubuntu22.04) but it is not installable
mysql-community-server-debug : Depends: mysql-community-server (= 8.3.0-1ubuntu22.04) but it is not installable
mysql-community-test-debug : Depends: mysql-community-test but it is not installable
mysql-server : Depends: mysql-community-server (= 8.3.0-1ubuntu22.04) but it is not installable
mysql-testsuite : Depends: mysql-community-test (= 8.3.0-1ubuntu22.04) but it is not installable
redis : Depends: redis-server (< 5:6.0.16-1ubuntu1.1~) but it is not going to be installed
Depends: redis-server (>= 5:6.0.16-1ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Failed to start redis-server.service: Unit redis-server.service not found.
sed: can't read /etc/redis/redis.conf: No such file or directory
sed: can't read /etc/redis/redis.conf: No such file or directory
Failed to restart redis-server.service: Unit redis-server.service not found
-
原因分析:
-
解决方法:
修复系统中的破损依赖关系,运行命令
sudo apt --fix-broken install -y
再次安装就不报错了