Today I found all my *.list files copied to *.liste.
I did not care much as I thought that this could be some new localisation improvement.
Now I was looking for something and executed:
apt-cache policy <something>, and got this output:
Quote...
N: Datei »siduction.liste« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
N: Datei »google.liste« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
N: Datei »debian.liste« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
N: Datei »siduction.liste« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
N: Datei »google.liste« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
N: Datei »debian.liste« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
It says: File "whatever.liste" ignored due to invalid extension.
So what the heck are those *.liste files, where do they come from? I will delete them, but first I want to know what's going on.
That is a strange one. I doubt that it happened from a d-u or package installation. Here my system is fully updated as of 5 minutes ago, and there is no such issue:
root@imerabox:/# apt-get dist-upgrade -d
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@imerabox:/# ls /etc/apt/sources.list.d
debian_experimental.list debian_stable.list iceweasel.list~ kdenext.list~
debian.list debian_testing.list kdenext_experimental_snapshots.list siduction.list
debian-multimedia.list iceweasel.list kdenext.list
If I am right (localisation) it can't affect you. But that leads me to the conclusion it wasn't the best idea to (only) ask about it in the english part of the forum ;-)
@ dibl / mods
could you move it to "software" (where I should have posted it).
In the german warning for debian-multimedia.org there was this command for removing this repo out of the list.
find /etc/apt -type f -name "*.list" \
-exec sed -ie '/deb.*debian-multimedia\.org/d' {} \;
I don't understand how, but this command creates those files named <duplicate>.liste.
I think the warning was to CHANGE "debian-multimedia" to "deb-multimedia", because they changed the domain name. It is just a "mv" command -- no need for fancy "find" and "sed" operations, IMHO.
I don't see why it would add an "e" to the end of the file name .... but there you go!
Hi,
...sed -ie... is doing the Job.
man sed:Quote-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if SUFFIX supplied)
greets
ayla
Edit: btw, I don't see how the above mentioned lines should replace the origin entry with the expected one so what dibl mentioned seems to be a good idea to me.
Quote from: "dibl"...It is just a "mv" command -- no need for fancy "find" and "sed" operations, IMHO....
"mv" only moves files and changes file names, but cannot touch content within a file such as "deb http://debian-multimedia...".
Hmm, that is a tricky one. :wink:
I guess the correct command should be:
find /etc/apt -type f -name "*.list" \
-exec sed -i -e '/deb.*debian-multimedia\.org/d' {} \;
What they are trying to do is remove the line(s) containing the /deb.debian-multimedia/ repo because the guy maintaining that is not abiding to the Debian rules.
hmm, ok, simply mark and delete in the preferred editor seems to be to simple for the author.
Even if he has to open the file in it to get a line for the new repo in. :)
So now it is really solved, "sed -ie" =! "sed -i -e". And the latter does what it should whereas the first created confusion.
Thanks xaos52
Quote from: "michaa7"
"mv" only moves files and changes file names, but cannot touch content within a file such as "deb http://debian-multimedia...".
Uppppps -- that is correct, I didn't think through the change.
I would use Alt-F2 "kdesu kate", edit the file to change the repo name, then "save as" to the new file name, close kate, go to my root terminal and delete the old file.