Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List directory /var/lib/apt/lists/partial is missing. #725

Closed
bartonhammond opened this issue Apr 16, 2018 · 2 comments
Closed

List directory /var/lib/apt/lists/partial is missing. #725

bartonhammond opened this issue Apr 16, 2018 · 2 comments

Comments

@bartonhammond
Copy link

Image(s): 3.11.0-californium release

Dockerfile:

FROM selenium/standalone-chrome-debug:latest
USER seluser
RUN apt-get update

Docker-Selenium Image Version(s):

Docker Version:

~/projects/thinkwell-livewell (develop)$ docker version
Client:
 Version:	18.03.0-ce
 API version:	1.37
 Go version:	go1.9.4
 Git commit:	0520e24
 Built:	Wed Mar 21 23:06:22 2018
 OS/Arch:	darwin/amd64
 Experimental:	false
 Orchestrator:	swarm

Server:
 Engine:
  Version:	18.03.0-ce
  API version:	1.37 (minimum version 1.12)
  Go version:	go1.9.4
  Git commit:	0520e24
  Built:	Wed Mar 21 23:14:32 2018
  OS/Arch:	linux/amd64
  Experimental:	true

OS:
Mac 10.13.3

Expected Behavior -

Actual Behavior -

~/projects/thinkwell-livewell (develop)$ docker build -t thinkwell .
Sending build context to Docker daemon  206.6MB
Step 1/4 : FROM selenium/standalone-chrome-debug:latest
 ---> 84b85c846d6a
Step 2/4 : USER seluser
 ---> Running in 6a0a3c059956
Removing intermediate container 6a0a3c059956
 ---> bfca1b6592aa
Step 3/4 : RUN apt-get update
 ---> Running in 9fecf27c43b4
Reading package lists...
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
The command '/bin/sh -c apt-get update' returned a non-zero code: 100
@bartonhammond
Copy link
Author

I changed Dockerfile to this:

FROM selenium/standalone-chrome-debug:latest
USER root
RUN sudo apt-get update

and it worked.

If this is correct answer, please close.

@diemol
Copy link
Member

diemol commented Apr 16, 2018

Hi @bartonhammond,

Yes, some packages are installed with root and only a few with seluser, so for your use case probably you need the root user.

@diemol diemol closed this as completed Apr 16, 2018
@lock lock bot locked and limited conversation to collaborators Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants