ubuntu - ubuntu xenial/Release' 不再有 Release 文件。ubuntu中的错误
问题描述
当我更新时sudo apt-get update
我必须更新它,因为某些库需要更新版本,我已经尝试过
我在底部提到的解决方案,但它不起作用并且一次又一次地给出相同的错误
这是我得到的错误。
Hit:14 http://ppa.launchpad.net/umang/indicator-stickynotes/ubuntu bionic InRelease
Reading package lists... Done
E: The repository 'https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/ 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.```
I found this problem [Here][1] , But it does not work for me
[1]: https://stackoverflow.com/questions/10255082/installing-r-from-cran-ubuntu-repository-no-public-key-error
please tell me the problem
解决方案
解决方案 1
首先尝试添加您需要的 repo 的 PPA。
如果你去这里的回购。
为正确的版本添加 PPA(我的示例是版本
sudo add-apt-repository ppa:c2d4u.team/c2d4u4.0+
sudo apt-get update
然后将 repo url 添加到 source.list。
首先,备份您的 /etc/apt/source.list
sudo cp /etc/apt/source.list /etc/apt/source.bak
替换这个
https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/ Release
有了这个
deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran40/
在你的 /etc/apt/source.list
最后尝试再次更新。
sudo apt-get update
sudo apt-get upgrade
解决方案 2
您可能需要将 apt-get 指向存档的存储库。我不认识你的回购 URL。根据我的经验,如果您使用的是 Xenial,则您的源列表中不应包含仿生。
您是否尝试过这些存储库?
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
# deb http://archive.ubuntu.com/ubuntu xenial-proposed main restricted universe multiverse
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
我希望你有这个服务器的完整备份。根据我的经验,用错误的 repos 替换 apt list 可能会破坏应用程序和整个操作系统。
无论如何,如果它真的是你所追求的 xenial repo。
首先,备份您的 /etc/apt/source.list
sudo cp /etc/apt/source.list /etc/apt/source.bak
接下来复制并粘贴我在上面提供的存储库。
sudo nano /etc/apt/source.list
使用 nano 编辑器或您喜欢的编辑器粘贴列表。
保存文件:ctrl+O
关闭文件:ctrl+X
最后尝试再次更新。
sudo apt-get update
sudo apt-get upgrade
推荐阅读
- typescript - node_modules/firebase-functions/lib/function-configuration.d.ts:4:64 - 错误 TS1005: ']' 预期
- azure - Blob 根据到达日期存储数据/文件
- laravel-5 - 碳日期转换仅在一个日期字段中失败
- android - 为什么开发者名称在 Google Play 商店中显示“No results found for pub:”?
- mqtt - 运行此 python 代码(mqtt)时出错
- python - 如何将自定义行输入到 OCR 的 tesseract?
- python - 如何在 python 中去除时间序列的趋势(去除异常值)
- webpack - 如何在 webpack 包中通过编号识别包?
- computer-vision - 如何修复“RuntimeError:函数 CudnnConvolutionBackward 在索引 1 处返回无效梯度”
- css - 悬停在自动填充建议上时输入文本非常小