更换软件源后无法更新应用
Tofloor
poster avatar
chenzherui
deepin
2020-12-20 23:06
Author

软件源更换为 阿里软件源后,使用apt-get update命令一直显示

E: 在源列表 /etc/apt/sources.list 中第 1 行有误 (类型)

E: 无法读取源列表。

etc/apt 目录下文件如图


etc/apt/sources.list文件内容如下

## Generated by deepin-installer
deb [by-hash=force] https://community-packages.deepin.com/deepin/ apricot main contrib non-free
#deb-src https://community-packages.deepin.com/deepin/ apricot main contrib non-free

Reply Favorite View the author
All Replies
chenzherui
deepin
2020-12-20 23:13
#1

求助怎么能解决这个问题,不换源了也行啊[泪]

Reply View the author
chenzherui
deepin
2020-12-20 23:36
#2

问题已解决,用内测活动的软件源文件替换就好了

Reply View the author
lgh3x
deepin
2020-12-21 00:28
#3

内测活动的软件源文件发下

Reply View the author
洛辉
deepin
2020-12-21 02:39
#4

不要随便换源 https://bbs.deepin.org/post/207767

Reply View the author
7***3@qq.com
deepin
2020-12-21 16:44
#5

用内测舒坦,哈哈。

Reply View the author
chenzherui
deepin
2020-12-22 23:01
#6
lgh3x

内测活动的软件源文件发下

1、将系统修改为内部测试源,终端执行以下命令:sudo dedit /etc/apt/sources.list

2、然后使用以下内容覆盖sources.list文件,然后保存并退出。

## Generated by deepin-installer

deb [by-hash=force] https://community-packages.deepin.com/deepin/ apricot main contrib non-free

#deb-src https://community-packages.deepin.com/deepin/ apricot main contrib non-free



deb [trusted=yes] https://proposed-packages.deepin.com/dde-apricot unstable main contrib non-free

Reply View the author