davidfoerster/aptsources-cleanup

Ubuntu PPAs

Closed this issue · 3 comments

Hello,
in bash, I get messages from apt such as:
"Target xxx is configured multiple times in /etc/apt/sources.list.d/xxx"
..but script says "No duplicate entries were found."
Can you please update the script to include PPA sources? I use Kubuntu 17.10 and it has multiple PPA sources lists in /etc/apt/sources.list.d/*.list. Main sources.list is located in /etc/apt/sources.list.
Thanks!

Hi, could you please attach the full list of errors, warnings and notices of Apt (prefixed with E:, W: and N: respectively in English) as well as the content of all sources files mentioned therein. This would help me reproduce and trace down the issue. Thanks!

Hi, I have an install script which adds ppas and then installs packages. The problem occurs when it runs for more than one time. (OK I know there should be no reason to run such script repeatedly.) When I was writing it, I expected apt to just skip adding already existing sources similar way like when I try to install already installed or remove nonexisting packages, but it adds sources multiple times instead. Anyway, I attached the script, bash output and all sources lists. I also noticed strange thing in lists containing duplicates - original url source path has trailing slash at the end, the other does not. Maybe this could be the problem that two lines have same meaning but strings itselves are not equal? Thanks!
script-report.zip

Looks like add-apt-repository doesn't normalize path names. I hadn't even thought of that.

Fixed in f7f2b8e.