1

I got this error while upgrading from ubuntu 17.04 to 17.10 saying that I have configured sources.list file multiple times. please help

karel
  • 122,292
  • 133
  • 301
  • 332
Suhail
  • 111

1 Answers1

1

Check for duplicate sources with this command (source):

S="/etc/apt/sources.list" ; S2="$S ${S}.d/*.list" ; grep -b "^deb`cat $S2 | grep -i "^deb[[:space:]]http" | sort | uniq -dc | sed -e 's;[[:space:]]\+[[:digit:]]\+[[:space:]]\+deb\(.\+$\);\1;g'`$" $S2

(You will set 2 error messages if /etc/apt/sources.list.d/ directory is empty. That's ok.)

If you see any red text lines on the output of this command -> then you have to edit the according file(s) and remove the duplicate entries.

Bob
  • 401