为什么我的系统告诉我版本 3.x 是最新的,而显然有版本 4 甚至 5?
$ sudo apt-get install redis-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
redis-server is already the newest version (2:3.0.6-1ubuntu0.3).
运行apt policy redis-server
输出:
redis-server:
Installed: 2:3.0.6-1ubuntu0.3
Candidate: 2:3.0.6-1ubuntu0.3
Version table:
*** 2:3.0.6-1ubuntu0.3 500
500 http://us-east-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
100 /var/lib/dpkg/status
2:3.0.6-1 500
500 http://us-east-2.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
我也跑sudo apt-get update
了也没有用。我的系统(Ubuntu 16.04)坚持 3 i 最新版本。我能做些什么来解决这个问题?
然后运行 redis-server: