在UbuntuStudio22.10和22.04.1LTS中,每次我运行apt,特别是apt更新时,我都会发现它查找了/etc/apt/目录或文件中没有的源代码。起初,这只是一个令人费解的刺激,但现在UbuntuStudioDiscovery.com被推迟了3分钟,显然是在寻找相同的源代码。
$ sudo apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu kinetic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu kinetic-updates InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu kinetic-backports InRelease [99.9 kB]
Hit:4 http://security.ubuntu.com/ubuntu kinetic-security InRelease
Ign:5 http://archive.canonical.com/ubuntu kinetic InRelease
Err:6 http://archive.canonical.com/ubuntu kinetic Release <<---!!
404 Not Found [IP: 2620:2d:4000:1003::111 80]
Hit:7 https://ppa.launchpadcontent.net/tatokis/alarm-clock-applet/ubuntu kinetic InRelease
Reading package lists... Done
E: The repository 'http://archive.canonical.com/ubuntu kinetic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
我尝试了各种有关sudo ppa的建议-清除和sudo apt安装ppa-清除,并收到结果表明他们失败了,因为他们找不到要清除的包。
检查“软件来源”,我发现这个来源没有列出在任何选项卡。然后,我查看了/etc/apt/中的每个目录和文件,再次没有发现这种"http://archive.canonical.com/ubuntu动态发布“的迹象。
所以问题是“在哪里能找到寻找这个指令的地方?”“我怎么才能把它移走,这样就不会再继续寻找它了?”
下面是我搜索的目录和文件的日志,以确认Ubuntu源代码或/etc/apt/中没有列出"http://archive.canonical.com/ubuntu动态版本“。
apt sources.list含量
$ inxi -r
Repos:
Active apt repos in: /etc/apt/sources.list
1: deb http://us.archive.ubuntu.com/ubuntu/ kinetic main restricted
2: deb http://us.archive.ubuntu.com/ubuntu/ kinetic-updates main restricted
3: deb http://us.archive.ubuntu.com/ubuntu/ kinetic universe
4: deb http://us.archive.ubuntu.com/ubuntu/ kinetic-updates universe
5: deb http://us.archive.ubuntu.com/ubuntu/ kinetic multiverse
6: deb http://us.archive.ubuntu.com/ubuntu/ kinetic-updates multiverse
7: deb http://security.ubuntu.com/ubuntu/ kinetic-security main restricted
8: deb http://security.ubuntu.com/ubuntu/ kinetic-security universe
9: deb http://security.ubuntu.com/ubuntu/ kinetic-security multiverse
10: deb http://us.archive.ubuntu.com/ubuntu/ kinetic-backports main restricted universe multiverse
11: deb http://archive.canonical.com/ubuntu/ kinetic partner
Active apt repos in: /etc/apt/sources.list.d/tatokis-ubuntu-alarm-clock-applet-kinetic.list
1: deb https://ppa.launchpadcontent.net/tatokis/alarm-clock-applet/ubuntu/ kinetic main
我在/etc/apt/和子目录中搜索了http://archive.canonical.com/ubuntu动态发布
g905:/etc/apt$ ls
apt.conf.d keyrings sources.list sources.list.d trusted.gpg.d
auth.conf.d preferences.d sources.list~ trusted.gpg
g905:/etc/apt$ cd trusted.gpg.d
g905:/etc/apt/trusted.gpg.d$ ls
tatokis-ubuntu-alarm-clock-applet.gpg ubuntu-keyring-2012-cdimage.gpg
tatokis-ubuntu-alarm-clock-applet.gpg~ ubuntu-keyring-2018-archive.gpg
g905:/etc/apt/trusted.gpg.d$ cd ..
g905:/etc/apt$ ls
apt.conf.d keyrings sources.list sources.list.d trusted.gpg.d
auth.conf.d preferences.d sources.list~ trusted.gpg
g905:/etc/apt$ cd sources.list.d
g905:/etc/apt/sources.list.d$ ls
tatokis-ubuntu-alarm-clock-applet-kinetic.list
g905:/etc/apt/sources.list.d$ cd ..
g905:/etc/apt$ cd apt.conf.d
g905:/etc/apt/apt.conf.d$ ls
01autoremove 20archive 50appstream 60icons-large 99update-notifier
01-vendor-ubuntu 20auto-upgrades 50command-not-found 60icons-large-hidpi
10periodic 20dbus 50unattended-upgrades 70debconf
15update-stamp 20packagekit 60icons 88libdvdcss-pkg
20apt-esm-hook.conf 20snapd.conf 60icons-hidpi 99synaptic
g905:/etc/apt/apt.conf.d$ cd ..
g905:/etc/apt$ cd auth.conf.d
g905:/etc/apt/auth.conf.d$ ls [Empty]
g905:/etc/apt/auth.conf.d$ cd ..
g905:/etc/apt$ cd preferences.d
g905:/etc/apt/preferences.d$ ls [Empty]
g905:/etc/apt/preferences.d$ cd ..
再一次说清楚,它还能在哪里?如果不仅仅是删除文件夹或文件,我如何才能删除它。
Platform details
Operating System: Ubuntu Studio 22.10
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6
Kernel Version: 5.19.0-1018-lowlatency (64-bit)
Graphics Platform: X11
Processors: 24 × AMD Ryzen 9 7900X 12-Core Processor
Memory: 31.1 GiB of RAM
Graphics Processor: llvmpipe
Manufacturer: MicroElectronics Product Name: G905 System Version: 1.0
发布于 2023-03-23 21:10:46
是/etc/apt/sources.list
的第11次回购引起了麻烦:
deb http://archive.canonical.com/ubuntu/ kinetic partner
注释掉这一行,然后再试一次。
https://askubuntu.com/questions/1460648
复制相似问题