List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)

Viewed 3738

So far I installed my additional needed stuff directly in Docker, as a "post argument".

/bin/sh -c 'apt update && apt install -y smartmontools && apt install -y lm-sensors && apt install -y nvme-cli && apt install -y ipmitool && telegraf'

This does not work anymore. The error message appears as mentioned in the headline. How can I as root continue to install these things, as a "post argument"?

System: Unraid - Docker - Telegraf:latest

2 Answers

A change to the Telegraf docker images was made to run telegraf not as the root user. This unfortunately meant that users could not install any new software. New Telegraf images are now published that allow users to again install additional software to the images. Telegraf itself is still run as the telegraf user/group, but users have access to run things as root in order to configure the image. We have a full post on why we made this change and the impact to users. Thanks!

I believe you are using a non root container image. Read the documentation of the docker image provider to find the solution to see how you can use the image as a root container image.

Related