[SOLVED] Couldn't create temporary file /tmp/apt.conf.2IGOzR for passing config to apt-key

lethargos

Well-Known Member
Jun 10, 2017
128
4
58
74
Hallo,

Ich habe dieses Problem, wenn ich die Repositories aktualisieren will. Dieser ist nur ein Test-Server, also habe ich keine Zugang zum pve-enterprise Repository.
Code:
apt update
Get:1 http://security.debian.org stretch/updates InRelease [94.3 kB]
Ign:2 http://ftp.ro.debian.org/debian stretch InRelease                                 
Err:1 http://security.debian.org stretch/updates InRelease                     
  Couldn't create temporary file /tmp/apt.conf.2IGOzR for passing config to apt-key
Hit:3 http://ftp.ro.debian.org/debian stretch Release                           
Err:4 http://ftp.ro.debian.org/debian stretch Release.gpg
  Couldn't create temporary file /tmp/apt.conf.PABc2R for passing config to apt-key
Get:5 http://download.proxmox.com/debian/pve stretch InRelease [3,052 B]
Err:5 http://download.proxmox.com/debian/pve stretch InRelease
  Couldn't create temporary file /tmp/apt.conf.0XagEe for passing config to apt-key
So sieht mein source.list aus:
Code:
deb http://ftp.ro.debian.org/debian stretch main contrib
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
# security updates
deb http://security.debian.org stretch/updates main contrib
Ich habe genug Speicherplatz, also das ist nicht die Ursache.


Ich habe es auch im Internet nachgeschalgen, aber ich habe keine Lösungen gefunden. Was könnte das Problem sein?

pveversion
pve-manager/5.2-8/fdf39912 (running kernel: 4.15.18-4-pve)
/ ist nicht read-only gemounted.

Danke im Voraus!
 
Last edited:
hmm - Wie sehen die permissions von /tmp aus ? (Wir hatten vor kurzem einen aehnlichen Fall im Forum)
`ls -la /` sollte auskunft geben
 
on my installation /tmp has 777 permissions, and setting them to 700 (like you) produces the same error, so something set the wrong permissions on /tmp

deutsch:
auf meiner installation hat /tmp 777, und wenn ich es auf 700 setze bekomme ich den gleichen fehler.
etwas hat offenbar die falschen reche auf /tmp vergeben
 
Du hast recht. Ich habe es auch auf einem Centos überprüft, und da gibt es eine 777 Berechtigung. Es hat funktionert, sobald ich es auf 777 gesetzt habe.
Ich wundere mich, was eigentlich die falsche Berechtigung gesetzt hat.
Auf jeden Fall danke!
 
Last edited:
Wie wurde PVE aufgesetzt? (iso, debian + repository hinzufuegen, ein image bei einer Hostingfirma)?

Ich wuerde `1777` fuer /tmp nehmen (sticky bit, damit user nur ihre eigenen files loeschen koennen).
 
Ich habe es selbst mit einer offiziellen ISO installiert. Danach habe ich es einfach aktualisiert. Ich hatte an einem bestimmten Punkt Probleme mit lxc, aber der Grund dafür war die Tatsache, dass ich nicht alle repos hinzugefügt habe. Das war vor langer Zeit. Seitdem habe ich es problemlos aktualisiert. Ich weiß es gar nicht, wann es passiert ist. Ich habe auch das sticky bit hinzugefügt. Danke.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!