LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Debian 9 (stretch) - why 'apt-get update' cannot write tmp files? (https://www.linuxquestions.org/questions/linux-newbie-8/debian-9-stretch-why-apt-get-update-cannot-write-tmp-files-4175619721/)

dedec0 12-16-2017 07:33 AM

Debian 9 (stretch) - why 'apt-get update' cannot write tmp files?
 
I just added a foreign architeture¹ to this Debian 9 machine. In Debian's wiki², they ask an 'apt-get update' too, so I tried it. But I am receiving weird errors from apt. Look at my terminal:

Code:

11:17:05 [  0] root@comp: /dev/shm
#  LANG=en-GB; apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Err:2 http://deb.debian.org/debian stretch-updates InRelease           
  Couldn't create temporary file /tmp/apt.conf.cQcaa7 for passing config to apt-key
Hit:4 http://deb.debian.org/debian stretch Release                     
Err:5 http://deb.debian.org/debian stretch Release.gpg
  Couldn't create temporary file /tmp/apt.conf.qyKkR5 for passing
  config to apt-key
Get:3 http://security.debian.org/debian-security stretch/updates InRelease [63.0 kB]
Err:3 http://security.debian.org/debian-security stretch/updates InRelease
  Couldn't create temporary file /tmp/apt.conf.9kA1Xg for passing
  config to apt-key
Fetched 63.0 kB in 0s (244 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not
  updated and the previous index files will be used.
  GPG error: http://deb.debian.org/debian stretch-updates
  InRelease: Couldn't create
  temporary file /tmp/apt.conf.cQcaa7 for passing config to apt-key
W: An error occurred during the signature verification. The repository is not
  updated and the previous index files will be used.
  GPG error: http://deb.debian.org/debian stretch
    Release: Couldn't create temporary file
  /tmp/apt.conf.qyKkR5 for passing config to apt-key
W: An error occurred during the signature verification. The repository is not
  updated and the previous index files will be used.
  GPG error:
  http://security.debian.org/debian-security stretch/updates
  InRelease: Couldn't create temporary file /tmp/apt.conf.9kA1Xg for
    passing config to apt-key
W: Failed to fetch
  http://security.debian.org/debian-security/dists/stretch/updates/InRelease 
  Couldn't create temporary file /tmp/apt.conf.9kA1Xg for passing
  config to apt-key
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease 
  Couldn't create temporary file /tmp/apt.conf.cQcaa7 for passing
  config to apt-key
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/Release.gpg 
  Couldn't create temporary file /tmp/apt.conf.qyKkR5 for passing
  config to apt-key
W: Some index files failed to download. They have been ignored, or
  old ones used instead.

What is wrong here? I cannot understand. /tmp is normally writable by anything or anyone, as it always were, so...

--------------------

¹
Code:

11:15:06 [  0] root@comp: /dev/shm
# dpkg --print-foreign-architectures

11:15:31 [  0] root@comp: /dev/shm
# dpkg --add-architecture i386

11:16:40 [  0] root@comp: /dev/shm
# dpkg --print-foreign-architectures
i386

11:16:43 [  0] root@comp: /dev/shm
# dpkg --print-architecture
amd64

² wiki.debian.org/Multiarch/HOWTO

Shadow_7 12-16-2017 11:25 AM

$ mount

make sure that " / " isn't mounted read-only. With systemd if you do not setup /etc/fstab it will default to read-only. Or that the filesystem isn't 100% full. Otherwise try using httpredir instead deb.

change

deb http://deb.debian.org/debian stretch main contrib non-free

to

deb http://httpredir.debian.org/debian stretch main contrib non-free

This will try to select a mirror for you. Change it to that mirror if it works well for you. This is for your /etc/apt/sources.list. Be sure to include the stretch-updates and security lines as well.

deb http://security.debian.org stretch/updates main contrib non-free
deb http://httpredir.debian.org/debian stretch main contrib non-free
deb http://httpredir.debian.org/debian stretch-updates main contrib non-free

I think archive works too for the main repository. I don't think deb is a valid repo and the source of some of that fluff. deb https://archive.debian.org/..... Not sure though, but archive is a valid subdomain for raspbian versions.

There's also a few keyring things to make apt less grumpy.

$ sudo apt-get install debian-keyring debian-archive-keyring

dedec0 12-16-2017 12:23 PM

May I keep lines with 'httpredir' in /etc/apt/sources.list ?
 
Thank you for these comments, Shadow_7!

(before) I tested for write permissions with explicit touch'es, both with root and my normal user. Both normal.

Full partition was not something I wondered - this computer is new, with plenty space for everything. But gparted tells me this for root partition, where /tmp is: 19% free, which is ~1.77 GiB. /tmp is not a separate partition there.

And 'mount' command shows what is below, everything normal too. I just trimmed to show only lines that you should want to see:

Code:

# (as root)

# mount | grep ' / '
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)

#  mount | grep tmp
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8160368k,nr_inodes=2040092,mode=755)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1634320k,mode=755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1634320k,mode=700,uid=1000,gid=1000)

#

A question to what you suggested:

If I keep some lines with "http://httpredir.debian.org/debian" in /etc/apt/sources.list, will it do any harm? Anything bad besides repetitively querying for a good mirror?

My full /etc/apt/sources.list now (with no changes made now!) is:

Code:

# No CDROM drive anymore
# deb cdrom:[Debian GNU/Linux 9.0.0 _Stretch_ - Official
  amd64 NETINST 20170617-13:06]/ stretch main

# No CDROM drive anymore
# deb cdrom:[Debian GNU/Linux 9.0.0 _Stretch_ - Official
  amd64 NETINST 20170617-13:06]/ stretch main

deb http://deb.debian.org/debian/ stretch main
deb-src http://deb.debian.org/debian/ stretch main

deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main

# stretch-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ stretch-updates main
deb-src http://deb.debian.org/debian/ stretch-updates main

I know some available repositories are note there, and you suggested them. It is a kind of choice. I have installed only a few packages manually, without the help of aptitude or synaptic. Seems fine here.

Besides these differences, may I only change the "deb.debian.org" lines to a good mirror?

About those keyreing packages. 35 MiB of installed keyrings! A lot! But both are here now.
(:

Shadow_7 12-16-2017 02:27 PM

That is likely your only change needed.

keeping httpredir shouldn't hurt, but could. If the service goes down or away it stops working even though everything else functions and is "normal". There's some URL somewhere on debian.org that lists the actual mirrors and you should technically select one that's dependable and close to you. They're not as bad as DNS servers that wreck your day and need to be changed more often than underwear IMO. But under load, the httpredir is probably the first thing to break / have a bad day.

dedec0 12-16-2017 03:58 PM

Ok, I will do these changes now. I will keep the "httpredir" there for sometime. All users in this machine do not use package installing or updating often. So it should not upset the service to redir to a good mirror.

When downloading a package manually, I am given a list of several mirrors for that file. For example, check ....debian /.../wine32/download. A country subdomain can be a different server? For example, in that page there are:

(south america)
ftp.br.debian.org/debian
ftp.cl.debian.org/debian

Both in debian.org domain! But they will be different servers, right?

And there is a complete mirror list here:

debian /mirror/list

I will look that page now and maybe choose to use one of them instead of httpredir. A few times before, I have seen mirrors that didn't have all files (no example to give now, sorry). Is this somehow predictable? Or was it an error and should not happen?

By the way... only now I have "clicked" in this idea: are the /tmp errors 'apt-get updt' gave me due broken addresses in my sources.list? How strange!

dedec0 12-16-2017 04:07 PM

Quote:

Originally Posted by Shadow_7 (Post 5793944)
...

I think archive works too for the main repository. I don't think deb is a valid repo and the source of some of that fluff. deb https://archive.debian.org/..... Not sure though, but archive is a valid subdomain for raspbian versions.

...

If that deb subdomain I had is somehow what explain these problems (which have existed since I access this computer, some weeks ago), that will be a great "side" (although not much) effect of this change.
(:

dedec0 12-16-2017 04:16 PM

There is still some problem
 
I changed the sources.list and right after tried an 'apt-get update'. Much less than before, but it still gave one error. There are several warnings, but I understand that they may happening only because of my use of "httpredir" instead of a specific mirror (right?).

My source.list now (a few comments removed) is:

Code:

deb    http://httpredir.debian.org/debian stretch main
deb-src http://httpredir.debian.org/debian stretch main

deb    http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main

deb    http://httpredir.debian.org/debian stretch-updates main
deb-src http://httpredir.debian.org/debian stretch-updates main

The new output of apt-get is:

Code:

# LANG=en-GB; apt-get update
Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:2 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Get:4 http://cdn-fastly.deb.debian.org/debian stretch-updates/main Sources [3564 B]
Get:3 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [5976 B]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch-updates/main i386 Packages [5956 B]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch-updates/main Translation-en [3583 B]
Get:8 http://security.debian.org/debian-security stretch/updates InRelease [63.0 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
Ign:9 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg
Get:10 http://cdn-fastly.deb.debian.org/debian stretch/main Sources [6756 kB]
Err:8 http://security.debian.org/debian-security stretch/updates InRelease
  Couldn't create temporary file /tmp/apt.conf.Mvmiaw for passing config to apt-key
Get:11 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [7123 kB]
Get:12 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages [7103 kB]
Get:13 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR [766 kB]
Get:14 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en [5393 kB]
Get:15 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt [341 kB]
Fetched 27.8 MB in 25s (1110 kB/s)
Reading package lists... Done
W: GPG error: http://cdn-fastly.deb.debian.org/debian stretch-updates
  InRelease:
  Couldn't create temporary file /tmp/apt.conf.VnTtm5 for passing
  config to apt-key
W: The repository 'http://httpredir.debian.org/debian stretch-updates
  InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore
  potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration
  details.
W: GPG error: http://cdn-fastly.deb.debian.org/debian stretch Release:
  Couldn't create temporary file /tmp/apt.conf.SCvDlx for passing
  config to apt-key
W: The repository 'http://httpredir.debian.org/debian stretch Release'
  is not signed.
N: Data from such a repository can't be authenticated and is therefore
  potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration
  details.
W: An error occurred during the signature verification. The repository is
  not updated and the previous index files will be used. GPG error:
  http://security.debian.org/debian-security stretch/updates InRelease:
  Couldn't create temporary file /tmp/apt.conf.Mvmiaw for passing config
  to apt-key
W: Failed to fetch
  http://security.debian.org/debian-security/dists/stretch/updates/InRelease 
  Couldn't create temporary file /tmp/apt.conf.Mvmiaw for passing config
  to apt-key
W: Some index files failed to download. They have been ignored, or old
  ones used instead.


dedec0 12-16-2017 04:26 PM

I repeated the 'apt-get update' command, to see if the error persisted. It did, but the problem seems to be only with security.debian.org. Is this a problem I should somehow report?

Shadow_7 12-16-2017 06:00 PM

You could try commenting out the security line for now to let apt cleanly finish. Otherwise make sure your clock is sync'd.

# ntpdate pool.ntp.org

I've had key issues with that before when the day of the change happened on UTC and my system was configured for regional time (CST), and wouldn't work until both UTC and CST were the same date. Or at least a date later than the key change. Probably not your issue though.

deb http://security.debian.org/debian-security stretch/updates main

should probably be...

deb http://security.debian.org stretch/updates main

It's a bit different than the other sources and doesn't afaik have a sources branch (deb-src).

dedec0 12-16-2017 08:50 PM

A problem still exist, but it should be due the use off httpredir URLs. I changed the security URLs as you said in #9. I also commented the entry for deb-src in security (I do not remember if I created it by almost copying the normal URL... possibly, but not sure). After this change, I ran apt-get 3 times, also with errors.

After commenting both security lines, I ran 'apt-get update' a few more times, but it had a few *different* errors in each run! Two of them, I think. I will copy 3 runs with different ends, or almost that (I did not skim each to check everything, the lines seem to also change order, dunno).


Code:

00:15:37 [  0] root@comp: /dev/shm
# vim /etc/apt/sources.list  # commented security lines

00:15:45 [  0] root@comp: /dev/shm
# apt-get update  # 1
Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:2 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Get:3 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
Ign:4 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Hit:6 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Hit:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Hit:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt
Ign:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Ign:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Ign:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt     
Hit:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en     
Ign:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en     
Hit:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR 
Ign:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Hit:6 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Hit:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Hit:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt
Ign:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Ign:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Ign:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt     
Hit:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en     
Ign:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en     
Hit:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR 
Ign:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR
Ign:5 http://httpredir.debian.org/debian stretch/main Sources
Ign:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:6 http://httpredir.debian.org/debian stretch/main i386 Packages
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Ign:7 http://httpredir.debian.org/debian stretch/main amd64 Packages
Ign:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Err:8 http://httpredir.debian.org/debian stretch/main Translation-pt
  BZ2_bzread: /var/lib/apt/lists/partial/httpredir.debian.org_debian_dists_
  stretch_main_i18n_Translation-pt.bz2 Read error (-5: DATA_ERROR_MAGIC)
Ign:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt
Ign:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en
Ign:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR
Ign:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Fetched 93.5 kB in 5s (16.9 kB/s)             
Reading package lists... Done
W: GPG error: http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease:
  Couldn't create temporary file /tmp/apt.conf.j16su5 for passing config to apt-key
W: The repository 'http://httpredir.debian.org/debian stretch-updates InRelease' is
  not signed.
N: Data from such a repository can't be authenticated and is therefore potentially
  dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://cdn-fastly.deb.debian.org/debian stretch Release:
  Couldn't create temporary file /tmp/apt.conf.T5yM8w for passing config to apt-key
W: The repository 'http://httpredir.debian.org/debian stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially
  dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch
  http://httpredir.debian.org/debian/dists/stretch/main/i18n/Translation-pt
  BZ2_bzread:
  /var/lib/apt/lists/partial/httpredir.debian.org_debian_dists_stretch_main_i18n_
  Translation-pt.bz2 Read error (-5: DATA_ERROR_MAGIC)
E: Some index files failed to download. They have been ignored, or old ones used instead.

00:16:01 [  0] root@comp: /dev/shm
# apt-get update  # 2
Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:2 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Get:3 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
Ign:4 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Hit:6 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Hit:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Hit:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR
Ign:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Ign:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Ign:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR     
Hit:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en         
Ign:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en     
Hit:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt     
Ign:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Hit:6 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Hit:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Hit:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR
Ign:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Ign:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Ign:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR     
Hit:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en         
Ign:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en     
Hit:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt     
Ign:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt
Ign:5 http://httpredir.debian.org/debian stretch/main Sources
Ign:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:6 http://httpredir.debian.org/debian stretch/main i386 Packages
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Ign:7 http://httpredir.debian.org/debian stretch/main amd64 Packages
Ign:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Err:8 http://httpredir.debian.org/debian stretch/main Translation-pt_BR
  BZ2_bzread: /var/lib/apt/lists/partial/
  httpredir.debian.org_debian_dists_stretch_main_i18n_Translation-pt%5fBR.bz2
  Read error (-5: DATA_ERROR_MAGIC)
Ign:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR
Ign:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en
Ign:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt
Ign:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Fetched 93.5 kB in 5s (16.9 kB/s)
Reading package lists... Done
W: GPG error: http://cdn-fastly.deb.debian.org/debian stretch-updates
  InRelease: Couldn't create temporary file /tmp/apt.conf.VIV2zu for passing
  config to apt-key
W: The repository 'http://httpredir.debian.org/debian stretch-updates InRelease'
  is not signed.
N: Data from such a repository can't be authenticated and is therefore
  potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://cdn-fastly.deb.debian.org/debian stretch Release:
  Couldn't create temporary file /tmp/apt.conf.0dSV1W for passing config to apt-key
W: The repository 'http://httpredir.debian.org/debian stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous
  to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://httpredir.debian.org/debian/dists/stretch/main/i18n/
  Translation-pt_BR  BZ2_bzread: /var/lib/apt/lists/partial
  /httpredir.debian.org_debian_dists_stretch_main_i18n_Translation-pt%5fBR.bz2 Read error
    (-5: DATA_ERROR_MAGIC)
E: Some index files failed to download. They have been ignored, or old ones used instead.

00:19:47 [  0] root@comp: /dev/shm
# apt-get update  # 3
Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:2 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease                         
Get:3 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]                     
Get:4 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
Ign:4 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Hit:6 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Hit:7 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages 
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Ign:7 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages 
Hit:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR
Ign:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR     
Hit:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en         
Ign:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en     
Hit:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt     
Ign:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Hit:6 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Ign:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Hit:7 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Ign:7 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages 
Hit:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR
Hit:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en
Ign:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR
Ign:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en     
Hit:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt     
Ign:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt
Ign:5 http://httpredir.debian.org/debian stretch/main Sources
Ign:5 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:6 http://httpredir.debian.org/debian stretch/main amd64 Packages               
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages         
Ign:7 http://httpredir.debian.org/debian stretch/main i386 Packages               
Ign:7 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Err:8 http://httpredir.debian.org/debian stretch/main Translation-pt_BR
  BZ2_bzread: /var/lib/apt/lists/partial/httpredir.debian.org_debian_dists_
  stretch_main_i18n_Translation-pt%5fBR.bz2 Read error (-5: DATA_ERROR_MAGIC)
Ign:8 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR
Ign:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en
Ign:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt
Fetched 93.5 kB in 4s (21.5 kB/s)             
Reading package lists... Done
W: GPG error: http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease:
    Couldn't create temporary file /tmp/apt.conf.KxeiZM for passing config to apt-key
W: The repository 'http://httpredir.debian.org/debian stretch-updates InRelease' is
  not signed.
N: Data from such a repository can't be authenticated and is therefore potentially
  dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://cdn-fastly.deb.debian.org/debian stretch Release: Couldn't
  create temporary file /tmp/apt.conf.PTk2K5 for passing config to apt-key
W: The repository 'http://httpredir.debian.org/debian stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially
  dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://cdn-fastly.deb.debian.org/debian/dists/stretch/main/
  source/Sources  lzma_read: Read error (7)
E: Failed to fetch http://httpredir.debian.org/debian/dists/stretch/main/i18n/
  Translation-pt_BR  BZ2_bzread: /var/lib/apt/lists/partial
  /httpredir.debian.org_debian_dists_stretch_main_i18n_Translation-pt%5fBR.bz2
  Read error (-5: DATA_ERROR_MAGIC)
E: Some index files failed to download. They have been ignored, or old ones
  used instead.
00:20:10 [  0] root@comp: /dev/shm
#

There is a final error that did not repeat (much more than only 3 times I show above) after I commented both security lines. It happened two or three times during this last test session. It is this, look mainly the final lines:

Code:

00:13:17 [  0] root@comp: /dev/shm
# apt-get update  #
Get:1 http://security.debian.org stretch/updates InRelease [63.0 kB]
Ign:1 http://security.debian.org stretch/updates InRelease                                       
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease                               
Get:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Ign:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Get:4 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
Ign:5 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg
Hit:6 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Hit:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Ign:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Hit:8 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages 
Ign:8 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages 
Hit:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR
Ign:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR     
Hit:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt       
Ign:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt     
Hit:11 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en     
Ign:11 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en
Hit:6 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Hit:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Hit:8 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Ign:8 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages 
Hit:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR
Ign:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR     
Hit:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt       
Hit:11 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en
Ign:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt
Ign:11 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en
Ign:6 http://httpredir.debian.org/debian stretch/main Sources
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:7 http://httpredir.debian.org/debian stretch/main amd64 Packages
Ign:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Ign:8 http://httpredir.debian.org/debian stretch/main i386 Packages
Ign:8 http://cdn-fastly.deb.debian.org/debian stretch/main i386 Packages
Err:9 http://httpredir.debian.org/debian stretch/main Translation-pt_BR
  BZ2_bzread: /var/lib/apt/lists/partial/httpredir.debian.org_debian_dists_
  stretch_main_i18n_Translation-pt%5fBR.bz2 Read error (-5: DATA_ERROR_MAGIC)
Ign:9 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt_BR
Ign:10 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-pt
Ign:11 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch/main Sources
Ign:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
Reading package lists... Done                 
W: GPG error: http://security.debian.org stretch/updates InRelease: Couldn't create
  temporary file /tmp/apt.conf.41aIx4 for passing config to apt-key
W: The repository 'http://security.debian.org stretch/updates InRelease' is
  not signed.
N: Data from such a repository can't be authenticated and is therefore potentially
  dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease:
  Couldn't create temporary file /tmp/apt.conf.U37DLH for passing config to apt-key
W: The repository 'http://httpredir.debian.org/debian stretch-updates InRelease' is
  not signed.
N: Data from such a repository can't be authenticated and is therefore potentially
  dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://cdn-fastly.deb.debian.org/debian stretch Release: Couldn't
  create temporary file /tmp/apt.conf.k9B6Jb for passing config to apt-key
W: The repository 'http://httpredir.debian.org/debian stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially
  dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Method gave invalid 103 Redirect message
00:13:42 [  0] root@comp: /dev/shm
#

The only thing waiting to be done here are the changes to use specific mirror. I will do that tomorrow, sleep time now. After I run that update command without errors (I believe that will happen) I will uncomment the security line.

Timothy Miller 12-16-2017 08:54 PM

Just a note, deb.debian.org is a redirector URL also, like httpredir. It's flaky though currently, takes a while to get it to work right, probably about the time Buster releases it should be easily usable.

Shadow_7 12-16-2017 10:21 PM

A bit old school... but:

$ sudo apt-get install dselect
$ sudo dselect update

Something about that tool the cleans out junk and merges sources when you've changed your sources.list. AFAIK the only thing that populates /var/lib/dpkg/available as well, which is a nice text file to browse when wondering what's available without a whole bunch of apt-cache search plus apt-cache show.

Beyond this I wonder if there's not some DNS funk or other, these are not the packets you're looking for, going on. Lower your MTU setting? Change your nameserver lines in /etc/resolv.conf. Perhaps some import/export limits too with regards to encryption since you're in a different hemisphere. It's a bit odd, the debian-keyring stuff normally resolves those types of quirks. If you were running something older and out of support it'd be a little more likely, but not with stretch the latest stable release.

I wonder if you have extras in /etc/apt/sources.list.d/ and such? Not that common, but a few games seem to favor setting that up. And maybe a few three letter agencies.

dedec0 12-21-2017 06:07 PM

Quote:

Originally Posted by Shadow_7 (Post 5794113)
A bit old school... but:

$ sudo apt-get install dselect
$ sudo dselect update

Something about that tool the cleans out junk and merges sources when you've changed your sources.list. AFAIK the only thing that populates /var/lib/dpkg/available as well, which is a nice text file to browse when wondering what's available without a whole bunch of apt-cache search plus apt-cache show.

Beyond this I wonder if there's not some DNS funk or other, these are not the packets you're looking for, going on. Lower your MTU setting? Change your nameserver lines in /etc/resolv.conf. Perhaps some import/export limits too with regards to encryption since you're in a different hemisphere. It's a bit odd, the debian-keyring stuff normally resolves those types of quirks. If you were running something older and out of support it'd be a little more likely, but not with stretch the latest stable release.

I wonder if you have extras in /etc/apt/sources.list.d/ and such? Not that common, but a few games seem to favor setting that up. And maybe a few three letter agencies.

Mmm... now I did read about dselect, which was suposedly superseded by APT things. Maybe updating APT DB will work with it, since it seems to have a problem with apt-get? Is that the idea?

I checked my nameservers here. They came as a gift with this computer. Searching for the IPs I have there, did not bring any bells. In the other computer I use the DNS provided by my ISP (if I remember correctly, it has been 4 years since I last played with that).

My /etc/apt/sources.list.d/ folder has no file. "(...) and such" -> I am not sure what I can show from our apt folder. The only unusual thing I am sure to have there is the untouched backups of sources.list file before I made any changes to it.

What would solve this thread? The problem I have with apt-get is normal?

Shadow_7 12-22-2017 04:18 PM

I wouldn't call the issue normal. It probably wouldn't be an issue if you installed with the installer and setup multi-arch at that time. But it's not a rare issue, especially as ISPs get more creative with your packets and shape your experience in weird ways. There's "apt-transport-https" for more exotic repo needs. Which might become the minimal need now that net neutrality was shot in the head and left for dead.

dedec0 12-22-2017 05:26 PM

Sometime ago, I have tried to install the same Debian 9 in this machine, in a different partition. But I had other difficulties in the end. I was even planning making threads to solve those (new) remaining problems... in the end, I started with simple threads to solve some minor problems the received (and partially working) setup had, and now we are kind of attached to this "gifted setup" (with everything we already changed in it).

I never noticed a multi-arch option during any *nix install process! Good to know. If we almost always need tricks to install common things now (with multi arch option chosen), I will study about trying that second setup again.

And, if I am right to think that, the only country which seems in a bit more fragile situation with net neutrality is USA. Is this correct? Or your comment sense is toward the influence that can have in other countries taking similar steps or making anything toward the same direction?

StirlingEngine 01-29-2019 05:54 PM

I ran into the same problem on my debian system and goofled to this posting.

In my case the fix was simple: chmod 777 on /tmp. The protections on /tmp somehow got changed so that only system had write access.

javaonekenobi 03-19-2019 05:49 AM

/tmp on tmpfs
 
I ran into the same problem on raspbian, I solved it by unmounting /tmp before using apt-get.

I suspect that the 500M /tmp in ram is not big enough for apt-get

It's an annoying solution having to unmount /tmp before using apt-get and remounting it afterwards, but on the raspberry with 1GB of ram I can't afford a bigger /tmp on tmpfs.

If you're not so short on ram you could try making /tmp bigger.


All times are GMT -5. The time now is 03:31 AM.