首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >apt更新查找sources.list或source中未列出的源。list.d或/etc/apt/中的任何位置

apt更新查找sources.list或source中未列出的源。list.d或/etc/apt/中的任何位置
EN

Ask Ubuntu用户
提问于 2023-03-23 20:58:16
回答 1查看 183关注 0票数 0

在UbuntuStudio22.10和22.04.1LTS中,每次我运行apt,特别是apt更新时,我都会发现它查找了/etc/apt/目录或文件中没有的源代码。起初,这只是一个令人费解的刺激,但现在UbuntuStudioDiscovery.com被推迟了3分钟,显然是在寻找相同的源代码。

代码语言:javascript
运行
复制
$ 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含量

代码语言:javascript
运行
复制
$ 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动态发布

代码语言:javascript
运行
复制
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 ..

再一次说清楚,它还能在哪里?如果不仅仅是删除文件夹或文件,我如何才能删除它。

代码语言:javascript
运行
复制
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
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2023-03-23 21:10:46

/etc/apt/sources.list的第11次回购引起了麻烦:

代码语言:javascript
运行
复制
deb http://archive.canonical.com/ubuntu/ kinetic partner

注释掉这一行,然后再试一次。

票数 3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1460648

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档