[Solved] Stretch Repository Errors

Post Reply
Message
Author
User avatar
outlaw
Posts: 20
Joined: Thu Jul 13, 2006 6:35 pm

[Solved] Stretch Repository Errors

#1 Post by outlaw »

For the last week or so I've been receiving this error message when I execute apt-get update.

Err:13 http://security.debian.org stretch/updates/main Translation-en
Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_main_i18n_Translation-en.bz2 - open (13: Permission denied) [IP: 128.101.240.215 80]

E: Failed to fetch http://security.debian.org/dists/stretc ... slation-en Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_main_i18n_Translation-en.bz2 - open (13: Permission denied) [IP: 128.101.240.215 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

I'm not overly concerned about missing security updates for a week or so.
Just seems odd the problem has not been corrected by now.

Tom
Last edited by outlaw on Fri Feb 23, 2018 2:08 pm, edited 1 time in total.

User avatar
Jerry3904
Administrator
Posts: 21881
Joined: Wed Jul 19, 2006 6:13 am

Re: Stretch Repository Errors

#2 Post by Jerry3904 »

Weird. You might want try using MX Repo to have the Debian repo switched to the fastest.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
m_pav
Developer
Posts: 1390
Joined: Sun Aug 06, 2006 3:02 pm

Re: Stretch Repository Errors

#3 Post by m_pav »

I wonder if this is related somehow

Running the updater via synaptic this morning, I was asked if I wanted to replace the Debian list, which, if we take a look at it, will have some ramifications on one of our tools to select the local repo. The sliver of text in the Synaptic window has the following and for clarity, I've attached a snapshot of the display which contained the "sliver"

Code: Select all

--- /etc/apt/sources.list.d/debian.list	2017-12-28 20:29:30.909604866 +1300
+++ /etc/apt/sources.list.d/debian.list.dpkg-new	2018-02-08 12:19:08.000000000 +1300
@@ -1,11 +1,7 @@
 # Debian Stable.
-deb http://ftp.nz.debian.org/debian/ stretch main contrib non-free 
+deb http://ftp.us.debian.org/debian/ stretch main contrib non-free 
 deb http://security.debian.org/ stretch/updates main contrib non-free
-#deb-src http://ftp.nz.debian.org/debian/ stretch main contrib non-free 
-
-# Multimedia Stable.
-# Use to install libdvdcss2 and codecs.
-#deb http://www.deb-multimedia.org stretch main non-free
+#deb-src http://ftp.us.debian.org/debian/ stretch main contrib non-free 
 
 #stretch backports
 #deb http://deb.debian.org/debian stretch-backports main
Screenshot-11.png
You do not have the required permissions to view the files attached to this post.
Mike P

Regd Linux User #472293
(Daily) Lenovo T560, i7-6600U, 16GB, 2.0TB SSD, MX_ahs
(ManCave) AMD FX 6100 CPU, nVidia, 8Gb, 3.25TB mixed, MX_ahs
(Spare)2017 Macbook Air 7,2, 8GB, 256GB SSD, MX_ahs

dr-kart
Posts: 135
Joined: Sun Oct 22, 2017 8:12 pm

Re: Stretch Repository Errors

#4 Post by dr-kart »

Running the updater via synaptic this morning, I was asked if I wanted to replace the Debian list...
and I have chosen "replace" option here (Y).
Now I have in /etc/apt/sources.list.d

Code: Select all

debian.list
debian.list.dpkg-old
is that ok?

2nd question:
Also I have mxpm-temp.list in there. Is that normal?

User avatar
timkb4cq
Developer
Posts: 3186
Joined: Wed Jul 12, 2006 4:05 pm

Re: Stretch Repository Errors

#5 Post by timkb4cq »

outlaw wrote:Err:13 http://security.debian.org stretch/updates/main Translation-en
Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_main_i18n_Translation-en.bz2 - open (13: Permission denied)
That looks like a corrupted file, or one with bad permissions. Open a root Thunar and delete any files found in /var/lib/apt/lists/partial/ . Those are supposed to be temporary files that are removed once the download of the package lists is complete.

I've seen this happen before when the root partition became full during an apt-get update so it wouldn't hurt to check your free space.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

User avatar
Stevo
Developer
Posts: 12774
Joined: Fri Dec 15, 2006 8:07 pm

Re: Stretch Repository Errors

#6 Post by Stevo »

The new debian.list removes the deactivated deb-multimedia repo, which often causes conflicts (gufw removal, for example) if everything is upgraded from it if activated. Though we recommend against that, some people seem to have forgotten to deactivate it after use, or assume it has our approval if it appears in the list. We recommend saying yes, then tweaking your entries with the repo manager again if necessary.

User avatar
outlaw
Posts: 20
Joined: Thu Jul 13, 2006 6:35 pm

Re: Stretch Repository Errors

#7 Post by outlaw »

Thank you for your reply Jerry ...your suggestion didn't solve the problem but using a server located closest to me makes sense.

Thank you for your reply Tim.

Deleting all the files from /var/lib/apt/lists/partial/ then running apt-get update generated a new error message:

E: Failed to fetch http://security.debian.org/dists/stretc ... slation-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)

This suggests to me a corrupt file but seems unlikely.

Could someone suggest a alternative / mirror for: deb http://security.debian.org/ stretch/updates main contrib non-free

Thank in advance for any advice or suggestions.

Tom
Naturally nuts no pharmaceuticals required

User avatar
timkb4cq
Developer
Posts: 3186
Joined: Wed Jul 12, 2006 4:05 pm

Re: Stretch Repository Errors

#8 Post by timkb4cq »

Looking around for an explanation, I saw several places where users who had the same Read error (-5: DATA_ERROR_MAGIC) message were able to recover by removing everything in /var/lib/apt/lists, including the partial directory. apt-get update worked properly after that. Every once in a while that error pops up if a disk is going bad but unless the new download of that file was into the exact same sectors it occupied the first time, that's fairly unlikely.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

User avatar
outlaw
Posts: 20
Joined: Thu Jul 13, 2006 6:35 pm

Re: Stretch Repository Errors

#9 Post by outlaw »

Thank you Tim your suggestion appears to have solved the problem.
Initially I only deleted the files in the partial directory.

Tom
Naturally nuts no pharmaceuticals required

Post Reply

Return to “General”