LE_746F6D617A7A69 wrote:This starts to get annoying:
http://forums.debian.net/viewtopic.php?f=17&t=147204
http://forums.debian.net/viewtopic.php?f=6&t=147203
I notice that here: http://forums.debian.net/viewtopic.php? ... 04#p726538-> so how it is possible that apt reports an error at line 26?
Something smells here ...
The /etc/apt/sources.list file does have more the 26 lines, 28 to be exact... Any way, I agree,
Is probably what happened, I wonder if the OP also ran 'apt update' after editing the file ?You said you cleaned it up, but apparently the cleaning went awry.
Probably would be best to delete/remove the old one, and start fresh with a good sources.list file , EG: the example shown here
Be sure to run 'apt update' after replacing or editing the file, if you don't do that the changes will not take effect, and you will still get the same error. I guess apt stores the file in some cache or something, and does not refresh that, until 'apt update' is run, in other words it must be updated first.sgosnell wrote:Try this. You don't need the source code, so comment those out to save time and bandwidth.Get rid of everything else. There may be stray unprintable characters in the file somewhere.Code: Select all
deb http://ftp.us.debian.org/debian/ buster main contrib #deb-src http://ftp.us.debian.org/debian/ buster main contrib deb http://security.debian.org/debian-security/ buster/updates main contrib #deb-src http://security.debian.org/debian-security/ buster/updates main contrib # buster-updates, previously known as 'volatile' deb http://deb.debian.org/debian/ buster-updates main contrib #deb-src http://deb.debian.org/debian/ buster-updates main contrib
Something similar happened to me years ago, after I edited my sources.list file, it still said it could not find the repository I had added, I double checked, and yes I had added the lines I needed, so I was baffled, and started reading the "apt-get" documentation, and also searching, some where it was mentioned that 'apt-get update' needed to be run, in order to update it.
========================
It was this: https://www.debian.org/doc/manuals/apt- ... co.en.html
It is now "obsolete " but uses debian stable as the example, ...Do not forget to run apt-get update after modifying the /etc/apt/sources.list file. You must do this to let APT obtain the package lists from the sources you specified.
Also the manual says:
https://manpages.debian.org/buster/apt/ ... .5.en.html
Not as clear as the older documentation, and I don't see any where on the debian wiki where they mention it,... seems like it used to, but any way that is another topic,...The information available from the configured sources is acquired by apt-get update (or by an equivalent command from another APT front-end).