(已解决)请问怎么将源列表改为系统默认的形式?
Tofloor
poster avatar
ylxdxx
deepin
2018-10-22 18:50
Author
本帖最后由 ylxdxx 于 2018-10-22 11:34 编辑

然而安装软件或更新便出问题了,提示如下:

  1. shui@shui-PC:~/Desktop/Usystem$ sudo apt update
  2. 忽略:1 http://dl.google.com/linux/chrome/deb stable InRelease
  3. 命中:2 http://packages.deepin.com/deepin panda InRelease
  4. 获取:3 http://dl.google.com/linux/chrome/deb stable Release [1,189 B]               
  5. 获取:4 http://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]                     
  6. 获取:5 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,389 B]
  7. 获取:6 https://packages.mkacg.com panda InRelease [5,060 B]                           
  8. 获取:7 https://packages.mkacg.com panda/experimental amd64 Packages [616 B]
  9. 获取:8 https://packages.mkacg.com panda/main amd64 Packages [3,155 B]
  10. 已下载 12.2 kB,耗时 2秒 (6,545 B/s)
  11. 正在读取软件包列表... 完成
  12. 正在分析软件包的依赖关系树      
  13. 正在读取状态信息... 完成      
  14. 所有软件包均为最新。
  15. W: 目标 Packages (main/binary-amd64/Packages) 在 /etc/apt/sources.list.d/deepin-topbar.list:1 和 /etc/apt/sources.list.d/deepin-topbar.list:2 中被配置了多次
  16. W: 目标 Packages (main/binary-all/Packages) 在 /etc/apt/sources.list.d/deepin-topbar.list:1 和 /etc/apt/sources.list.d/deepin-topbar.list:2 中被配置了多次
  17. W: 目标 Packages (main/binary-amd64/Packages) 在 /etc/apt/sources.list.d/deepin-topbar.list:1 和 /etc/apt/sources.list.d/deepin-topbar.list:2 中被配置了多次
  18. W: 目标 Packages (main/binary-all/Packages) 在 /etc/apt/sources.list.d/deepin-topbar.list:1 和 /etc/apt/sources.list.d/deepin-topbar.list:2 中被配置了多次
Copy the Code

这个问题在网上搜索了一下,应该是源列表相关问题,不敢乱改,怕以后升级系统出问题,所以现在问一下,怎么将其恢复到系统默认的状态?

Reply Favorite View the author
All Replies
avatar
WENWEN
deepin
2018-10-22 19:07
#1
/etc/apt/sources.list.d/  目录下删除对应的list
Reply View the author
avatar
ylxdxx
deepin
2018-10-22 19:32
#2
https://bbs.deepin.org/post/170052
/etc/apt/sources.list.d/  目录下删除对应的list

谢谢了
Reply View the author
avatar
lanxing0821
deepin
2018-10-22 21:56
#3
楼上的方法太粗暴,如果这个源还可以用的话,不能这样直接删除文件。看你给的图片的字面意思应该是/etc/apt/sources.list.d/deepin-topbar.list文件里有两个重复的源地址。
sudo nano /etc/apt/sources.list.d/deepin-topbar.list
把重复的行其中的一个前面加个#号就行,或者直接删除也行,然后按ctrl+x保存。
最后运行一下sudo apt update。
Reply View the author
avatar
ylxdxx
deepin
2018-10-22 22:13
#4
https://bbs.deepin.org/post/170052
楼上的方法太粗暴,如果这个源还可以用的话,不能这样直接删除文件。看你给的图片的字面意思应该是/etc/apt ...

明白了,谢谢
Reply View the author