apt-get update 未报告可升级包

apt-get update 未报告可升级包

我全新安装了 Ubuntu 20.04,但不知何故,apt 处于一种奇怪的状态。执行 ansudo apt-get update会完成所有动作并且不会返回任何错误,但是它不会报告任何可升级的软件包。如果我运行sudo apt-get upgrade它,它将安装可用的更新。我尝试使用以下命令进行修复:“ sudo dpkg --config -a sudo apt-get install -f sudo apt-get -f install sudo apt-get install --fix-broken”

我还能做些什么来尝试修复这种情况吗?

编辑:

sudo apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://packages.microsoft.com/repos/code stable InRelease                
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]      
Get:4 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]     
Get:5 http://archive.ubuntu.com/ubuntu focal-proposed InRelease [267 kB]       
Hit:6 https://packages.microsoft.com/ubuntu/20.04/mssql-server-2019 focal InRelease
Hit:7 https://packages.microsoft.com/repos/edge stable InRelease               
Get:8 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]   
Hit:9 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease         
Fetched 603 kB in 2s (324 kB/s)                                                
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
savaho@BlackHole:~$ sudo apt list --upgradable
Listing... Done

相关内容