[...] I have an error, but dont know why.
david@david-HP:~$ sudo update-mydebs
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning: fpc fpc-src lazarus-project
dpkg-scanpackages: info: Wrote 3 entries to output Packages file.
Get:1 file:/usr/local/mydebs ./ InRelease
Ign:1 file:/usr/local/mydebs ./ InRelease
Get:2 file:/usr/local/mydebs ./ Release
Err:2 file:/usr/local/mydebs ./ Release
File not found - /usr/local/mydebs/./Release (2: No such file or directory)
[...]
I do not know what I have done wrong.
Nothing wrong with you, though maybe with me. It looks like there have been some changes to either
dpkg(-scanpackages),
apt(-get) or both. Either that or there is something different in my configuration(s).
You can ignore the warnings of dpkg-scanpackages (they are meaningless for you), but the other errors (which come from
apt-get update) may be fatal ... or not: have you looked to see if Synaptic has the "new" packages ready to install?
I'm sorry that I can't be of more help but my access to anything newer than Ubuntu 16.04 is very limited. Maybe Juha is right, after all
ETA: For completeness sake, this is how executing the script looks like normally (in Spanish):
lucamar@luna:~/bin$ sudo ./update-mydebs.sh
dpkg-scanpackages: aviso: Paquetes en el archivo pero no presentes en el archivo «override»:
dpkg-scanpackages: aviso: fpc fpc-src lazarus-project
dpkg-scanpackages: información: Se han escrito «3» entradas en el archivo «Packages» de salida.
Ign file: ./ InRelease
Ign file: ./ Release.gpg
Ign file: ./ Release
Ign http://es.archive.ubuntu.com trusty InRelease
Ign http://extras.ubuntu.com trusty InRelease
Ign file: ./ Translation-es_ES
Ign file: ./ Translation-es
Des:1 http://extras.ubuntu.com trusty Release.gpg [72 B]
Ign file: ./ Translation-en
[... lots of similar lines from "apt-get update" ...]
Ign http://es.archive.ubuntu.com trusty/restricted Translation-es_ES
Ign http://es.archive.ubuntu.com trusty/universe Translation-es_ES
Descargados 17,5 MB en 10min. 12seg. (28,5 kB/s)
Leyendo lista de paquetes... Hecho
As you see, dpkg-scanpackages gives the same warnings/info, which is normal, but "apt-get update" works normally.
Note:
luna is a Kubuntu 14.04 box, so YMMV.
Ahem ... it does indeed "vary", doesn't it?