计算化学公社

标题: linux的sources.list文件用不了了 [打印本页]

作者
Author:
大头攒毛    时间: 2022-4-10 12:02
标题: linux的sources.list文件用不了了
我想更新一下Ubuntu的版本(现在是17.04),发现sources.list有问题(内容如下),我该怎么办?

-------------------------------------------------------------------------------------------

请按 ENTER 或其它命令继续


"/etc/apt/sources.list" [只读] 50L, 2740C
处理 /usr/share/vim/vim80/syntax/debsources.vim 时发生错误:
第   38 行:
E696: List 中缺少逗号: 'warty', 'hoary', 'breezy', 'dapper', 'edgy', 'feisty', '
gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid', 'maverick', 'natty', '
oneiric', 'precise', 'quantal', 'raring', 'saucy', 'utopic', 'vivid', 'wily', 'y
akkety' ]
E15: 无效的表达式: [ 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato', 'woody', 's
arge', 'etch', 'lenny', 'squeeze' 'warty', 'hoary', 'breezy', 'dapper', 'edgy',
'feisty', 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid', 'maverick',
'natty', 'oneiric', 'precise', 'quantal', 'raring', 'saucy', 'utopic', 'vivid',
'wily', 'yakkety' ]

第   44 行:
E121: 未定义的变量: s:unsupported
E116: Invalid arguments for function join(s:unsupported, '\|') .'\)\>\([-[:alnum
:]_./]*\)+'
E15: 无效的表达式: 'syn match debsourcesUnsupportedDistrKeyword +\([[:alnum:]_./
]*\)\<\('. join(s:unsupported, '\|') .'\)\>\([-[:alnum:]_./]*\)+'

------------------------------------------------------------------------------------------------------------------






作者
Author:
abin    时间: 2022-4-10 15:34
ubuntu 17.04, end of life for a long time.

You may replace the content of source.list with the one from other newer version ,
ubuntu 20.04, for example,
then try to run
  1. sudo apt update && sudo apt upgrade
复制代码


Or try with the following lines.
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse

作者
Author:
abin    时间: 2022-4-10 15:38
另, 标题不符合实际.

应该描述为“GNU/Linux发行版, ubuntu 17.04, 出现XX故障“.
ubuntu不是一个独立的操作系统, 仅仅是基于GNU/Linux的一个发行版而已.
作者
Author:
大头攒毛    时间: 2022-4-10 20:05
谢谢,我试试
作者
Author:
大头攒毛    时间: 2022-4-10 20:25
abin 发表于 2022-4-10 15:38
另, 标题不符合实际.

应该描述为“GNU/Linux发行版, ubuntu 17.04, 出现XX故障“.

我输入sudo apt update && sudo apt upgrade后,终端出现了如下:

忽略:1 http://security.ubuntu.com/ubuntu zesty-security InRelease            
命中:2 http://linux.teamviewer.com/deb stable InRelease                       
错误:3 http://security.ubuntu.com/ubuntu zesty-security Release               
  404  Not Found [IP: 2001:67c:1562::18 80]
命中:4 http://linux.teamviewer.com/deb preview InRelease                     
忽略:5 http://cn.archive.ubuntu.com/ubuntu zesty InRelease                    
忽略:6 http://cn.archive.ubuntu.com/ubuntu zesty-updates InRelease            
忽略:7 http://cn.archive.ubuntu.com/ubuntu zesty-backports InRelease         
命中:8 http://ppa.launchpad.net/jonathonf/vim/ubuntu zesty InRelease
错误:9 http://cn.archive.ubuntu.com/ubuntu zesty Release                     
  404  Not Found [IP: 2001:67c:1562::18 80]
命中:10 http://ppa.launchpad.net/ubuntu-on-rails/ppa/ubuntu zesty InRelease   
错误:11 http://cn.archive.ubuntu.com/ubuntu zesty-updates Release
  404  Not Found [IP: 2001:67c:1562::18 80]
错误:12 http://cn.archive.ubuntu.com/ubuntu zesty-backports Release
  404  Not Found [IP: 2001:67c:1562::18 80]
命中:13 https://dl.winehq.org/wine-builds/ubuntu groovy InRelease
正在读取软件包列表... 完成   
E: 仓库 “http://security.ubuntu.com/ubuntu zesty-security Release” 不再含有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://cn.archive.ubuntu.com/ubuntu zesty Release” 不再含有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://cn.archive.ubuntu.com/ubuntu zesty-updates Release” 不再含有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://cn.archive.ubuntu.com/ubuntu zesty-backports Release” 不再含有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

我现在想把版本升级


作者
Author:
abin    时间: 2022-4-10 20:30
大头攒毛 发表于 2022-4-10 20:25
我输入sudo apt update && sudo apt upgrade后,终端出现了如下:

忽略:1 http://security.ubuntu.com ...

自己看手册,
动手呗。

不过升级花费的时间,很久的。

如果做了系统和数据分离的话,
重装系统,然后挂数据继续用。

具体看你的操作技能。
作者
Author:
abin    时间: 2022-4-11 23:33
https://askubuntu.com/questions/ ... test-non-lts-ubuntu

建议,
买一个新硬盘, 100元, 重新安装(15分钟),
挂载旧硬盘, 调整用户设定(1小时左右).

搞定.




欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3