尽管 20.04.4 已经发布,但仍在运行 Ubuntu 20.04.2

尽管 20.04.4 已经发布,但仍在运行 Ubuntu 20.04.2

我对我的 Ubuntu 安装没有任何抱怨,它运行良好。

最近我发现有 7 个 Python 更新无法安装 - 每个更新都以 Ubuntu 版本 20.04.4 为前缀。我检查了我的 Ubuntu 安装版本,它是 20.04.2。

Ubuntu 20.04.4 似乎于 2022 年 3 月推出,但我的更新程序由于某种原因没有包括它。

~$ lsb_release -a
LSB Version:    core-11.1.0ubuntu2-noarch:printing-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.2 LTS
Release:    20.04
Codename:   focal
~$ sudo apt update
[sudo] password for sandbar: 
Hit:1 http://repo.mysql.com/apt/ubuntu focal InRelease
Hit:2 http://packages.microsoft.com/repos/edge stable InRelease                
Hit:3 http://ppa.launchpad.net/blaze/rtbth-dkms/ubuntu focal InRelease         
Hit:4 http://archive.canonical.com/ubuntu focal InRelease                      
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease               
Hit:6 http://ie.archive.ubuntu.com/ubuntu focal InRelease                      
Hit:7 http://packages.microsoft.com/repos/code stable InRelease                
Hit:8 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:9 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease           
Hit:10 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu focal InRelease          
Hit:11 http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal InRelease        
Hit:12 http://ppa.launchpad.net/linuxuprising/java/ubuntu focal InRelease      
Hit:13 https://download.sublimetext.com apt/stable/ InRelease
Hit:14 http://ppa.launchpad.net/lyzardking/ubuntu-make/ubuntu focal InRelease
Hit:15 http://ppa.launchpad.net/mkusb/ppa/ubuntu focal InRelease
Hit:16 http://ppa.launchpad.net/slyon/iwd+nm/ubuntu focal InRelease
Hit:17 http://ppa.launchpad.net/swi-prolog/stable/ubuntu focal InRelease
Hit:18 http://ppa.launchpad.net/ubuntu-mozilla-daily/firefox-aurora/ubuntu focal InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up-to-date.
~$

为何我的机器没有进入更新循环?

机器:戴尔 Inspiron 15 5000 系列

中央处理器:i5-7xxx

内存:16 GB

图形处理器:AMD Radeon R7 M445

在此处输入图片描述在此处输入图片描述

20.04.4 安装后的 APT 源列表

# deb cdrom:[Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)]/ focal main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ie.archive.ubuntu.com/ubuntu/ focal main restricted
# deb-src http://ie.archive.ubuntu.com/ubuntu/ focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
# deb-src http://ie.archive.ubuntu.com/ubuntu/ focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
# deb-src http://ie.archive.ubuntu.com/ubuntu/ focal universe
# deb-src http://ie.archive.ubuntu.com/ubuntu/ focal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ie.archive.ubuntu.com/ubuntu/ focal multiverse
# deb-src http://ie.archive.ubuntu.com/ubuntu/ focal multiverse
# deb-src http://ie.archive.ubuntu.com/ubuntu/ focal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://ie.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner

deb http://security.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb http://archive.ubuntu.com/ubuntu/ focal-updates focal-updates restricted deb-src multiverse main universe http://archive.ubuntu.com/ubuntu/
# deb-src http://archive.ubuntu.com/ubuntu/ focal-updates focal-updates restricted deb-src multiverse main universe http://archive.ubuntu.com/ubuntu/

在此处输入图片描述

答案1

您缺少focal-updatesUbuntu 存储库。这就是您的系统运行 20.04.2 的原因。

文件中的几个错误/etc/apt/sources.list表明有人在手动编辑文件时犯了错误。

  1. 在该文件中添加以下行:
deb http://ie.archive.ubuntu.com/ubuntu/ focal-updates main restricted multiverse
  1. 从该文件中删除格式错误的行:
deb http://archive.ubuntu.com/ubuntu/ focal-updates focal-updates restricted deb-src multiverse main universe http://archive.ubuntu.com/ubuntu/
  1. 跑步sudo apt update

这将解决您提出的问题:您的系统将能够检测到 20.04.4 及更高版本的更新。它不会解决您通过添加无效/过时的 PPA 而造成的其他问题,这些问题可能仍会阻止安装这些更新。

相关内容