计算化学公社

 找回密码 Forget password
 注册 Register
Views: 3444|回复 Reply: 6
打印 Print 上一主题 Last thread 下一主题 Next thread

[其它程序] linux的sources.list文件用不了了

[复制链接 Copy URL]

195

帖子

0

威望

1461

eV
积分
1656

Level 5 (御坂)

跳转到指定楼层 Go to specific reply
楼主
我想更新一下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:]_./]*\)+'

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





2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

7#
发表于 Post on 2022-4-11 23:33:48 | 只看该作者 Only view this author
https://askubuntu.com/questions/ ... test-non-lts-ubuntu

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

搞定.
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

6#
发表于 Post on 2022-4-10 20:30:19 | 只看该作者 Only view this author
大头攒毛 发表于 2022-4-10 20:25
我输入sudo apt update && sudo apt upgrade后,终端出现了如下:

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

自己看手册,
动手呗。

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

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

具体看你的操作技能。
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

195

帖子

0

威望

1461

eV
积分
1656

Level 5 (御坂)

5#
 楼主 Author| 发表于 Post on 2022-4-10 20:25:04 | 只看该作者 Only view this author
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) 手册以了解仓库创建和用户配置方面的细节。

我现在想把版本升级

195

帖子

0

威望

1461

eV
积分
1656

Level 5 (御坂)

4#
 楼主 Author| 发表于 Post on 2022-4-10 20:05:03 | 只看该作者 Only view this author
谢谢,我试试

2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

3#
发表于 Post on 2022-4-10 15:38:08 | 只看该作者 Only view this author
另, 标题不符合实际.

应该描述为“GNU/Linux发行版, ubuntu 17.04, 出现XX故障“.
ubuntu不是一个独立的操作系统, 仅仅是基于GNU/Linux的一个发行版而已.
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

2#
发表于 Post on 2022-4-10 15:34:16 | 只看该作者 Only view this author
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
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2026-2-24 04:19 , Processed in 0.157523 second(s), 21 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list