从 Ubuntu 20.0.4 升级到 Ubuntu 22.04.1 后在 apt update 中遇到问题

从 Ubuntu 20.0.4 升级到 Ubuntu 22.04.1 后在 apt update 中遇到问题

我将系统从 ubuntu-20.0.4 升级到 ubuntu-22.04.1,在运行以下命令时出现一个警告:

sudo apt update

警告是

W: Skipping acquire of configured file 'somerville-cory-tgl/binary-i386/Packages' as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-cory-tgl' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'somerville-cory-tgl/binary-amd64/Packages' as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-cory-tgl' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'somerville-cory-tgl/i18n/Translation-en' as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-cory-tgl' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'somerville-cory-tgl/i18n/Translation-en_US' as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-cory-tgl' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'somerville-cory-tgl/dep11/Components-amd64.yml' as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-cory-tgl' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'somerville-cory-tgl/dep11/icons-48x48.tar' as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-cory-tgl' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'somerville-cory-tgl/dep11/icons-64x64.tar' as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-cory-tgl' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'somerville-cory-tgl/dep11/[email protected]' as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-cory-tgl' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'somerville-cory-tgl/cnf/Commands-amd64' as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-cory-tgl' (component misspelt in sources.list?)

我检查了我的源列表,它根本不包含“somerville-cory-tgl”。我的 source.list 文件如下

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

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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
# deb-src http://us.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 http://us.archive.ubuntu.com/ubuntu/ jammy universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal universe
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates universe
# deb-src http://us.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://us.archive.ubuntu.com/ubuntu/ jammy multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
# deb-src http://us.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 http://us.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse


deb http://security.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu jammy-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.

(编辑)但是,我确实在目录中somerville-cory-tgl名为的不同文件中找到了文本oem-somerville-cory-tgl-meta.list/etc/apt/sources.list.d/

文本看起来像

deb http://dell.archive.canonical.com/ jammy somerville
# deb-src http://dell.archive.canonical.com/ focal somerville
deb http://dell.archive.canonical.com/ jammy somerville-cory-tgl
# deb-src http://dell.archive.canonical.com/ focal somerville-cory-tgl

如果我注释掉deb http://dell.archive.canonical.com/ jammy somerville-cory-tgl这一行,那么问题就解决了,但我不确定这一行有多重要,因为我可以看到其中的内容http://dell.archive.canonical.com/dists/jammy/somerville/。它可能很重要。

我该怎么做才能解决这个问题?

答案1

让我们退一步来看看为什么会有 OEM 档案。您需要知道这一点才能理解答案。

包括戴尔在内的一些 OEM 厂商会将他们的设备送到台湾的 Canonical 团队进行硬件测试,并寻求新硬件 Linux 兼容性方面的帮助。(这也是Ubuntu 认证硬件)

该兼容软件需要一两年的时间才能进入 Linux 内核,但在此期间,Ubuntu 用户需要 OEM repo 才能使他们的新硬件正常运行。当通用 Linux 内核包含该兼容性时,不再需要 OEM repo。

现在来回答一下:

两年前,您的硬件需要该 OEM 存储库。但现在情况已不再如此,通用 Linux 内核应该可以在您的硬件上正常工作,并且该特定存储库已停产。

这就是您收到警告的原因:Apt 告诉您 repo 已停止。(Apt 不知道原因)

只需禁用(注释掉)该somerville-cory-tgl行即可。

由于您没有收到有关该somerville线路的警告,因此请保持其处于活动状态。

答案2

从上面大家就可以知道原因了。

我在戴尔机器上遇到了这个问题。

为了禁用 somerville-*,你可以

cd /etc/apt/sources.list.d
sudo rm oem-*

相关内容