sources.list messed up
Tofloor
poster avatar
semberovski
deepin
2017-08-25 11:14
Author
Hi everyone...am kinda new to linux and i accidenttly messed up sources.list...now everything i want to download i get
E: Malformed line 1 in source list /etc/apt/sources.list (type)
E: The list of sources could not be read.


So i would like to someone explain it to me (step by step hopefully) how to restore the sources.list to default without me reinstalling the system
Thank you!

Reply Favorite View the author
All Replies
bobo
deepin
2017-08-25 16:34
#1
本帖最后由 bobo 于 2017-8-25 08:36 编辑

Here you are. step 1
  1. sudo apt edit-source
Copy the Code
step2
paste following line to your source.list
  1. deb [by-hash=force] http://packages.deepin.com/deepin panda main contrib non-free
Copy the Code

step3
save the source file and update the source
  1. sudo apt update
Copy the Code


Reply View the author
jingle
deepin
2017-08-25 16:38
#2
  1. sudo gedit /etc/apt/sources.list
Copy the Code


Try it
Reply View the author