Menu

1 / 2

Unable to mkstemp /tmp/apt.sig: How /tmp 0755 Broke apt

DEV Community: ansible·david·6 days ago
#WfpSdcAe
#devtoansible#devto#dev#debian#codename
Reading 0:00
15s threshold

Originally published at woitzik.dev

Disclosure: This post contains Amazon affiliate links (marked with *). As an Amazon Associate I earn from qualifying purchases. Buying through them costs you nothing extra.

For about two months, apt on my Proxmox host could not refresh a single repository. /tmp had drifted from mode 1777 to 0755, apt's unprivileged _apt sandbox user could no longer create its signature temp files, and every apt-get update quietly fell back to stale index files. The fix was one chmod , plus a watchdog check so the next drift raises an alert instead of waiting for me to trip over it.

A week later I found a second version of the same problem on the Raspberry Pi nodes: unattended-upgrades ran every day, logged success, and left 69 updates untouched, including Docker Engine and containerd. Both failures share a shape.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.