im sorry if this is not in the correct place (ie answering my own question with an update, but it was too long for a "comment", and I did not want to edit the previous answer, anywhoo here we go...
Thanks for your reply.
First I tried to rm using sudo as advised, but got permission denied. Then was able to cd up to the "/var/lib/apt/lists/" directory, but no further.
So using "su" I could cd into the "partial" directory and run "rm ./*", clearing out the contents.
Re-running "apt-get update" (as root... sigh*) first gave me
Ign:13 http://security.debian.org stretch/updates/non-free Translation-en
Hit:12 http://security.debian.org stretch/updates/non-free amd64 Packages
Err:13 http://security.debian.org stretch/updates/non-free Translation-en
BZ2_bzread: /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
Ign:14 tor+http://zcaptnv5ljsxpnjt.onion jessie InRelease
Hit:15 tor+http://zcaptnv5ljsxpnjt.onion jessie Release
Fetched 295 kB in 2s (130 kB/s)
Reading package lists... Done
E: Failed to fetch http://security.debian.org/dists/stretch/updates/non-free/i18n/Translation-en BZ2_bzread: /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
E: Some index files failed to download. They have been ignored, or old ones used instead.
The running update again gave me the same error as before...
Ign:13 http://security.debian.org stretch/updates/non-free Translation-en
Ign:12 http://security.debian.org stretch/updates/non-free amd64 Packages
Err:13 http://security.debian.org stretch/updates/non-free Translation-en
Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 - open (13: Permission denied) [IP: 195.20.242.89 80]
Ign:12 http://security.debian.org stretch/updates/non-free amd64 Packages
Fetched 62.9 kB in 1s (43.0 kB/s)
Reading package lists... Done
E: Failed to fetch http://security.debian.org/dists/stretch/updates/non-free/i18n/Translation-en Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 - open (13: Permission denied) [IP: 195.20.242.89 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Here is the directory entry for my "partial" directory, are the permissions the same for everyone else?
drwx------ 2 _apt root 16384 Aug 5 15:41 partial
Thanks again for the help.
sudo
? or are you running it as your non-root user?su -
enter your password and then you can runapt-get update
. Either way that command must be run with root privileges.apt-get
as root is the important thing, sudo is just one way of doing that.ls -al /var/lib/apt/lists/partial