Comments (7)
I'm also seeing this, only started happening last night
Error running 'requirements_debian_update_system ',
showing last 15 lines of /home/rails/.rvm/log/1411597891/update_system.log
+ [[ -d /usr/sbin ]]
+ [[ ! :/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/rails/.rvm/bin: =~ :/usr/sbin: ]]
+ for sbin_path in /sbin /usr/sbin /usr/local/sbin
+ [[ -d /usr/local/sbin ]]
+ [[ ! :/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/rails/.rvm/bin: =~ :/usr/local/sbin: ]]
+ [[ -n '' ]]
+ command_to_run=(__rvm_sudo -p "%p password required for '$*': " "${command_to_run[@]}")
+ __rvm_sudo -p '%p password required for '\''apt-get --quiet --yes update'\'': ' apt-get --quiet --yes update
+ command sudo -p '%p password required for '\''apt-get --quiet --yes update'\'': ' apt-get --quiet --yes update
+ sudo -p '%p password required for '\''apt-get --quiet --yes update'\'': ' apt-get --quiet --yes update
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
+ return 1
+ typeset __ret=1
+ case ${__ret} in
+ return 1
Requirements installation failed with status: 1.
from docker-brew-ubuntu-core.
Temp fix is to run these two commands
RUN chown root:root /usr/bin/sudo
RUN chmod 4755 /usr/bin/sudo
from docker-brew-ubuntu-core.
Yup, we found this too; had to add chmod 4755 /usr/bin/sudo
in our buildscripts.
from docker-brew-ubuntu-core.
While this appears to be fixed in the latest images we've got up, I am very
curious to know what "sudo" is being used for "in the wild" (so to speak)
in Docker containers. Anyone care to elaborate?
(Also, please "docker pull ubuntu:14.04" and verify that the setuid bit is
set properly now.)
from docker-brew-ubuntu-core.
We have a baseimage which creates a user (let's say user
), sets the default user of the image to user
, and gives user
passwordless sudo
rights.
Later, when we're building application images from this baseimage, we run a script in the application source tree, which may use sudo
to, for example, install additional packages. After running this script, we revoke sudo
rights from user
and commit as our application image.
The reason this script runs as user
and not root
is so that any files created default to an ownership that's more compatible with our runtime user.
(Also, we removed our workaround for this some time ago, IIRC, it's been working fine).
from docker-brew-ubuntu-core.
This happens when the permissions get changed. You can boot into Ubuntu recover mode and enter the following commands to get the root access back.
mount -o remount,rw /
mount --all
chown root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo
restart
from docker-brew-ubuntu-core.
i am apply this command but its not work for me..so give me another solution
i use this command
mount -o remount,rw /
mount --all
chown root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo
restart
from docker-brew-ubuntu-core.
Related Issues (20)
- Docker image 21.04 (rolling) - apt update error HOT 6
- less command missing Ubuntu 20.10 image HOT 1
- how to tell the version of python3 supported in the default repository without installing? HOT 2
- Repositories no longer have release files HOT 3
- changelogs of "native" packages are missing HOT 3
- Cannot create new threads in Ubuntu 21.10 HOT 2
- [Question] Why date is not updated when new version is created? HOT 2
- to use gpu but slow HOT 1
- Ubuntu:20.04 image usage guidelines HOT 1
- Update Ubuntu Focal 20.04 image to 20220105 HOT 9
- dpkg broken in Jammy image on singular-doc pkg extraction HOT 2
- Need help in increasing the windows/chrome resolution for Ubuntu image HOT 1
- Update Ubuntu Focal 20.04 image to 20220316 HOT 4
- apt update fails on ubuntu:jammy unless --security-opt seccomp=unconfined is specified HOT 16
- Rerun build job to update ubuntu image LTE 20.04 HOT 1
- `apt update` fails on macOS HOT 1
- how to build 16.04.4 docker image? HOT 1
- Q: Get SERIAL or GitHash from running image HOT 1
- ubuntu:latest throws an error "failed to solve with frontend dockerfile.v0" HOT 3
- Unable to build from ubuntu 21.04 since 23 july HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-brew-ubuntu-core.