我有一台最初配备 Ubuntu 18.04 的 Dell XPS 13。我记得我从头开始重新安装了 20.04。当时/apt/sources.list.d/oem-somerville-three-eyed-raven-meta.list
包含:
deb http://dell.archive.canonical.com/ focal somerville-three-eyed-raven
# deb-src http://dell.archive.canonical.com/ focal somerville-three-eyed-raven
2020 年 5 月,apt upgrade
安装了 oem-somerville-meta,并将 oem-somerville-three-eyed-raven 从 20.04ubuntu3 升级到 20.04ubuntu4,结果包含/apt/sources.list.d/oem-somerville-three-eyed-raven-meta.list
:
deb http://dell.archive.canonical.com/ focal somerville
# deb-src http://dell.archive.canonical.com/ focal somerville
deb http://dell.archive.canonical.com/ focal somerville-three-eyed-raven
# deb-src http://dell.archive.canonical.com/ focal somerville-three-eyed-raven
升级到 22.04 导致文件包含:
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-three-eyed-raven
# deb-src http://dell.archive.canonical.com/ focal somerville-three-eyed-raven
正如预期的那样。
但是,现在每次我跑步时apt update
都会得到:
W: Skipping acquisition of configured file 'somerville-three-eyed-raven/binary-amd64/Packages', as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-three-eyed-raven' (component misspelt in sources.list?)
W: Skipping acquisition of configured file 'somerville-three-eyed-raven/binary-i386/Packages', as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-three-eyed-raven' (component misspelt in sources.list?)
W: Skipping acquisition of configured file 'somerville-three-eyed-raven/i18n/Translation-en', as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-three-eyed-raven' (component misspelt in sources.list?)
W: Skipping acquisition of configured file 'somerville-three-eyed-raven/i18n/Translation-en_GB', as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-three-eyed-raven' (component misspelt in sources.list?)
W: Skipping acquisition of configured file 'somerville-three-eyed-raven/dep11/Components-amd64.yml', as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-three-eyed-raven' (component misspelt in sources.list?)
W: Skipping acquisition of configured file 'somerville-three-eyed-raven/cnf/Commands-amd64', as repository 'http://dell.archive.canonical.com jammy InRelease' doesn't have the component 'somerville-three-eyed-raven' (component misspelt in sources.list?)
我可以安全地从中删除这些somerville-three-eyed-raven
行吗/apt/sources.list.d/oem-somerville-three-eyed-raven-meta.list
,或者我应该使用不同的存储库?
答案1
我认为升级后卸载是安全的oem-somerville-three-eyed-raven-meta
。这将卸载各种其他软件包,但由于标准 22.04 软件包包含对所有硬件的支持,因此不需要任何软件包。以下是对此的详细解释。
我对从该存储库安装的内容以及这些软件包包含的内容进行了一些深入研究。首先:
$ dpkg -l 'oem*'|grep '^i'
ii oem-somerville-meta 22.04ubuntu2 all hardware support for Somerville project
ii oem-somerville-three-eyed-raven-meta 20.04ubuntu4 all hardware support for Somerville Three-Eyed-Raven platform
看来我最初是oem-somerville-three-eyed-raven-meta
为 Focal 安装的,它在 2020 年 5 月获得了依赖性oem-somerville-meta
,所以在那时就安装了。
包装oem-somerville-three-eyed-raven-meta
内含有/etc/apt/sources.list.d/oem-somerville-three-eyed-raven-meta.list
以下物品
deb http://dell.archive.canonical.com/ focal somerville
# deb-src http://dell.archive.canonical.com/ focal somerville
deb http://dell.archive.canonical.com/ focal somerville-three-eyed-raven
# deb-src http://dell.archive.canonical.com/ focal somerville-three-eyed-raven
升级到 22.04 后,我的文件系统中的文件更改为包含:
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-three-eyed-raven
# deb-src http://dell.archive.canonical.com/ focal somerville-three-eyed-raven
当然没有http://dell.archive.canonical.com/dists/jammy-somerville-three-eyed-raven/
目录。
包装oem-somerville-three-eyed-raven-meta_20.04ubuntu4_all.deb
内含:
drwxr-xr-x root/root 0 2020-05-12 09:41 ./
drwxr-xr-x root/root 0 2020-05-12 09:41 ./etc/
drwxr-xr-x root/root 0 2020-05-12 09:41 ./etc/apt/
drwxr-xr-x root/root 0 2020-05-12 09:41 ./etc/apt/sources.list.d/
-rw-r--r-- root/root 270 2020-05-12 09:41 ./etc/apt/sources.list.d/oem-somerville-three-eyed-raven-meta.list
drwxr-xr-x root/root 0 2020-05-12 09:41 ./usr/
drwxr-xr-x root/root 0 2020-05-12 09:41 ./usr/share/
drwxr-xr-x root/root 0 2020-05-12 09:41 ./usr/share/doc/
drwxr-xr-x root/root 0 2020-05-12 09:41 ./usr/share/doc/oem-somerville-three-eyed-raven-meta/
-rw-r--r-- root/root 455 2020-05-12 09:41 ./usr/share/doc/oem-somerville-three-eyed-raven-meta/changelog.gz
-rw-r--r-- root/root 1037 2020-05-12 09:41 ./usr/share/doc/oem-somerville-three-eyed-raven-meta/copyright
该/etc/apt/sources.list.d/oem-somerville-three-eyed-raven-meta.list
文件是唯一具有实际效果的文件。
该oem-somerville-meta_22.04ubuntu2_all.deb
文件包含:
drwxr-xr-x root/root 0 2022-04-26 13:01 ./
drwxr-xr-x root/root 0 2022-04-26 13:01 ./usr/
drwxr-xr-x root/root 0 2022-04-26 13:01 ./usr/share/
drwxr-xr-x root/root 0 2022-04-26 13:01 ./usr/share/doc/
drwxr-xr-x root/root 0 2022-04-26 13:01 ./usr/share/doc/oem-somerville-meta/
-rw-r--r-- root/root 245 2022-04-26 13:01 ./usr/share/doc/oem-somerville-meta/changelog.gz
-rw-r--r-- root/root 1012 2022-04-26 13:01 ./usr/share/doc/oem-somerville-meta/copyright
drwxr-xr-x root/root 0 2022-04-26 13:01 ./usr/share/glib-2.0/
drwxr-xr-x root/root 0 2022-04-26 13:01 ./usr/share/glib-2.0/schemas/
-rw-r--r-- root/root 326 2022-04-26 13:01 ./usr/share/glib-2.0/schemas/15_oem-somerville-meta.gschema.override
并且唯一有效果的文件是15_oem-somerville-meta.gschema.override
包含以下内容的文件:
[org.gnome.shell]
favorite-apps = ['ubuntu-desktop-installer_ubuntu-desktop-installer.desktop', 'ubiquity.desktop', 'firefox_firefox.desktop', 'google-chrome.desktop', 'thunderbird.desktop', 'org.gnome.Nautilus.desktop', 'rhythmbox.desktop', 'libreoffice-writer.desktop', 'snap-store_ubuntu-software.desktop', 'yelp.desktop']
我假设它填充了 Gnome shell 的初始一组最喜欢的应用程序。
因此,对于那些不关心最初那组最喜欢的应用程序的人来说(可能几乎每个人都是这样),安装这些软件包的唯一好处就是它们的依赖关系。对于oem-somerville-meta
这些是dconf-gsettings-backend | gsettings-backend, ubuntu-oem-keyring
,对于oem-somerville-three-eyed-raven-meta
这些是ubuntu-oem-keyring, linux-generic-hwe-20.04, oem-somerville-meta
。对 的依赖linux-generic-hwe-20.04
反过来意味着对 的依赖linux-generic-hwe-22.04
。(目前没有适用于 22.04 的较新的硬件支持内核。)
我认为这意味着可以安全地卸载oem-somerville-meta
、oem-somerville-three-eyed-raven-meta
。这样做意味着apt autoremove
还将删除linux-generic-hwe-20.04
、linux-generic-hwe-22.04
、linux-headers-generic-hwe-22.04
和。到目前为止,删除所有这些软件包并没有给我带来任何问题linux-image-generic-hwe-22.04
。ubuntu-oem-keyring
答案2
如果我理解正确的话,somerville 是硬件补丁,它将被添加到未来的 LTS 版本中。
您可以前往http://dell.archive.canonical.com/,搜索 Jammy-somerville-*。我没有找到我的(somerville-pidgeot)。
我遇到了同样的问题。有了这个线索,没有其他答案,我禁用了它。您可以在每行前使用“#”禁用它。您可以启用删除这些标签。您需要超级用户权限,例如:
sudo vim /etc/apt/sources.list.d/oem-somerville-pidgeot-meta.list
或者使用您最喜欢的文本编辑器来代替 Vim。
你不会破坏任何东西,那些东西还没有损坏。这些是旧版本的存储库。我目前没有问题。我的硬件工作正常,我不再收到错误消息。