首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安全更新,因此被禁用?

无法安全更新,因此被禁用?
EN

Ask Ubuntu用户
提问于 2019-05-09 02:01:10
回答 1查看 66.3K关注 0票数 11

我已经浏览过这篇文章,没有读过什么,也没有试过为我修复这个问题。我装了酒,但我把它拿走了,因为我不想弄乱它。看来这对我是有损害的。当我做sudo apt update时,我会收到:

代码语言:javascript
复制
Err:1 http://your.repo.domain/repository disco InRelease
  Could not resolve 'your.repo.domain'
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease               
Get:3 https://dl.winehq.org/wine-builds/ubuntu disco InRelease [6,255 B]       
Ign:4 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease             
Err:5 http://us.archive.ubuntu.com/ubuntu artful-updates Release               
  404  Not Found [IP: 91.189.91.26 80]
Hit:6 http://dl.google.com/linux/chrome/deb stable Release
Hit:7 http://archive.ubuntu.com/ubuntu disco InRelease
Hit:8 http://archive.ubuntu.com/ubuntu disco-updates InRelease
Get:10 https://dl.winehq.org/wine-builds/ubuntu disco/main i386 Packages [42.1 kB]
Hit:11 http://archive.ubuntu.com/ubuntu disco-backports InRelease
Hit:12 http://archive.ubuntu.com/ubuntu disco-security InRelease      
Get:13 https://dl.winehq.org/wine-builds/ubuntu disco/main amd64 Packages [39.5 kB]
Reading package lists... Done       
E: The repository 'http://us.archive.ubuntu.com/ubuntu artful-updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

我以前很精通Linux,但那是10年前的事了,现在我不知道自己在做什么。有谁能给我解释一下我5岁的时候怎么解决这个问题吗?我把服务器改成了主服务器。

我从其他软件中删除了葡萄酒,它说要重新加载软件,所以我这么做了,但是它失败了,它说:E:The repository 'http://us.archive.ubuntu.com/ubuntu artful-updates Release' does not have a Release file.在搜索源时,我看到了。我现在正在运行一个备份,就像另一个线程中所建议的那样,有人能帮我从这里到哪里吗?非常感谢!

更新:/etc/apt/sources.list的内容

代码语言:javascript
复制
# deb cdrom:[Ubuntu 19.04 _Disco Dingo_ - Release amd64 (20190416)]/ disco main restricted

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

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

deb http://archive.ubuntu.com/ubuntu disco-security main restricted
# deb-src http://security.ubuntu.com/ubuntu disco-security main restricted
deb http://archive.ubuntu.com/ubuntu disco-security universe
# deb-src http://security.ubuntu.com/ubuntu disco-security universe
deb http://archive.ubuntu.com/ubuntu disco-security multiverse
# deb-src http://security.ubuntu.com/ubuntu disco-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 https://dl.winehq.org/wine-builds/ubuntu/ disco main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ disco main
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ disco main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ disco main
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates main
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates main
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates main

更新2:运行Jim提供的命令之后

代码语言:javascript
复制
leslie@leslie-Lenovo-YOGA-720-13IKB:~$ sudo sed -i '60s/.*/# &/' /etc/apt/sources.list
[sudo] password for leslie: 
leslie@leslie-Lenovo-YOGA-720-13IKB:~$ sudo apt update
Err:1 http://your.repo.domain/repository disco InRelease
  Could not resolve 'your.repo.domain'
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:3 http://dl.google.com/linux/chrome/deb stable Release                     
Hit:5 http://archive.ubuntu.com/ubuntu disco InRelease
Get:6 http://archive.ubuntu.com/ubuntu disco-updates InRelease [97.5 kB]
Get:7 http://archive.ubuntu.com/ubuntu disco-backports InRelease [88.8 kB]
Get:8 http://archive.ubuntu.com/ubuntu disco-security InRelease [97.5 kB]
Get:9 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 DEP-11 Metadata [72.1 kB]
Get:10 http://archive.ubuntu.com/ubuntu disco-updates/universe amd64 DEP-11 Metadata [8,740 B]
Get:11 http://archive.ubuntu.com/ubuntu disco-updates/universe DEP-11 64x64 Icons [8,269 B]
Get:12 http://archive.ubuntu.com/ubuntu disco-backports/universe amd64 DEP-11 Metadata [7,164 B]
Get:13 http://archive.ubuntu.com/ubuntu disco-security/main amd64 DEP-11 Metadata [17.8 kB]
Get:14 http://archive.ubuntu.com/ubuntu disco-security/universe amd64 DEP-11 Metadata [1,480 B]
Fetched 399 kB in 2s (232 kB/s)                
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://your.repo.domain/repository/dists/disco/InRelease  Could not resolve 'your.repo.domain'
W: Some index files failed to download. They have been ignored, or old ones used instead.
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2019-05-09 04:25:40

E: The repository no longer has a Release file

似乎您的artful (Ubuntu17.10)存储库在您的/etc/apt/sources.list文件中,因为它已经到达了EOL (结束生命)-因此存储库不再可用。

要解决这个问题,您需要删除或注释存储库,任何一种方法都可以完成这些工作。

使用超级用户权限打开/etc/apt/sources.list

代码语言:javascript
复制
sudo gedit /etc/apt/sources.list

找到这条线。

代码语言:javascript
复制
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main

注释/删除它,如果您注释它,行将如下所示。

代码语言:javascript
复制
# deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main

#标签符号添加到行的开头,将禁用artful存储库。

Could not resolve 'your.repo.domain'

显然,OP在包源列表中有一些未知的源,因此apt无法识别它,因此出现了上述错误。

与之前的过程一样,需要删除未识别的源。

代码语言:javascript
复制
sudo rm /etc/apt/sources.list.d/your-repo-name.list

其中,your-repo-name.list是有问题的独立源列表。

再试一次sudo apt update,它现在不会产生任何错误。

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

https://askubuntu.com/questions/1141671

复制
相关文章

相似问题

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