Skip to content

Commit

Permalink
Add rm apt lists to fix sources list func
Browse files Browse the repository at this point in the history
  • Loading branch information
fthaltun committed Apr 25, 2022
1 parent d37ee74 commit fb1e82f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SysActions.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def correctsourceslist():

if found:
rmtree("/etc/apt/sources.list.d", ignore_errors=True)
rmtree("/var/lib/apt/lists/", ignore_errors=True)
Path("/etc/apt/sources.list.d").mkdir(parents=True, exist_ok=True)
sfile = open("/etc/apt/sources.list", "w")
sfile.write(source)
Expand Down

0 comments on commit fb1e82f

Please sign in to comment.