Questions tagged [chroot]
a linux command to change the filesystem root a process can see, limiting it's access to the real filesystem root
348
questions
0
votes
1
answer
2k
views
Build aarch64 NVIDIA Jetson Nano image in x64 docker container using GitLab runner
I am trying to build a custom NVIDIA Jetson Nano image (aarch64 architecture) inside a Docker container (running Ubuntu 20.04 x64). I skip the NVIDIA tools part because I am stuck on the first part ...
2
votes
1
answer
6k
views
Chroot onto ARM based image
I'm trying to do some work on an image for a raspberry pi, but I don't have access to the pi itself, just the SD card that runs the OS.
I'd like to chroot onto the pi's SD card (mainly to run some ...
1
vote
1
answer
6k
views
Can't launch Qt Creator in Ubuntu 18.04
My environment initially had qt4 and Qt Creator seemed to work fine back then. I installed qt5 and after that Qt Creator does not launch anymore. Qt Creator works fine in my virtual machine however.
...
2
votes
1
answer
4k
views
Network Manager missing after update: no connectivity
After an update and restart, I found that the network icon on the top is missing and so, I cannot connect to LAN, wifi, USB modem, nothing. Now, I am booting from a Live USB, then chrooted to my ...
8
votes
2
answers
4k
views
debootstrap failing to mount /proc
I have researched this, and none of the answers (so far) on here, nor googling seem to match my problem.
Here is the situation:
I am running Xubuntu 12.04 as a base install, and am trying to set up a ...
0
votes
1
answer
164
views
Jailkit: does it work in 22.04?
I'm following these instructions for setting up sftp and scp (although I'd like to add rsync too) but when the jailed account logs in, it immediately disconnects without any errors I can see.
The doc ...
1
vote
1
answer
2k
views
Download Ubuntu rootfs
Similar to what is possible with Alpine Linux
is there a place where I can download some kind of official "core" rootfs of Ubuntu, mainly for chroot purposes?
3
votes
3
answers
11k
views
sudo: unable to allocate pty: No such device
Ubuntu 22.04.01 LTS
Gnome
Changed python version which resulted in inability to access Terminal and a few other things.
Used a liveUSB and then selected to try ubuntu.
In that terminal entered:
sudo ...
0
votes
0
answers
99
views
Tool for creating a minimal chroot environment
I want to run a program in a smallest possible chroot environment with just the binary and necessary shared libraries present. Is there a tool for creating such an environment?
I tried debootstrap but ...
0
votes
0
answers
156
views
Ubuntu 22.04 won't reboot
Upgraded Ubuntu 20.04 to 22.04 - everything worked fine. Then I tried activating unattended-upgrades and let it install a new kernel and reboot. Machine never recovered.
Grub has the following kernels ...
0
votes
0
answers
148
views
coustomizin ubuntu 23.10
I am currently in the process of creating a custom Ubuntu 23.10 ISO with a specific aim to initiate a minimal desktop environment along with a designated startup application when booted from a USB ...
0
votes
0
answers
151
views
Not able to install and update ubuntu 22.04 drivers using bootable ubuntu 22.04
I was trying to install a software that was giving me some gpu errors so i decided to downgrade my nvidia driver from 535 to 525. While doing so I got error in additional drivers app in Ubuntu. So ...
1
vote
1
answer
987
views
I accidentally run command "chmod 555" on system directories [duplicate]
I accidently ran
sudo chmod 555 /
and now all users have lost access to the server
Error:
Last login: Thu Oct 18 16:50:55 2023
Could not chdir to home directory /home/User1: Permission denied
/bin/...
0
votes
0
answers
7k
views
How to resolve grub-probe error: disk lvmid/xxx not found
I encounter an error stating "lvmid not found" when running the grub-probe command.
# grub-probe --target=fs_uuid /
grub-probe: error: disk `lvmid/R9xUrf-ONd8-wCXx-qfxt-m5Ox-JwKG-LrcAZI/...
0
votes
0
answers
20
views
Upgrading an old dusty 20.04 installation on a new motherboard, ethernet not working
I have an old 20.04.1 Ubuntu installation that wasn't touched since 2020, that I need to boot on to revive an old development project that was let unfinished. The motherboard & CPU changed and are ...
0
votes
0
answers
187
views
Recover brocken libs with live USB and chroot
I have the following problem:
I had to mingle with some libs to build a project successfully.
After I rebuild one of those libs (libtirpc) something broke and I was not able to either sudo nor use apt ...
0
votes
0
answers
109
views
Ubuntu ISO with Autoinstall over chroot
I'm tasked with migrating 200 physical CentOS 7 servers to a custom Ubuntu 22.04 ISO. This custom ISO comes pre-configured with Autoinstall and seamlessly installs on any server or VM.
However, I'm ...
1
vote
0
answers
25
views
sftp into chroot works fine, but debug messages reveil non-chroot authorized_keys absolute path
I have configured per-user chroot environments for SFTP to go into /somedir/jail/$user:
snippet from my /etc/ssh/sshd_config:
Match User myname
AllowTcpForwarding no
X11Forwarding no
...
1
vote
0
answers
287
views
Chroot into an encrypted ZFS installation from live media or alternatives
For some reason, usb-guard decided to remove all of the rules I have written that allowed my keyboard and mouse. I've had this happen before from myself messing up the configuration, but this setup ...
27
votes
6
answers
145k
views
During a chroot attempt, I got this error: "chroot: failed to run command '/bin/bash': Exec format error"
I was following the instructions of this tutorial HOWTO: Purge and Reinstall Grub 2 from the Live CD, when I encountered an error at step 1, as I launched the command
sudo chroot /mnt/temp
The error ...
1
vote
1
answer
484
views
How to automount with a chroot?
So in a chroot I have a /etc/fstab file. If I run mount -a in the chroot, it mounts the partitions listed. However, even when using the auto option, they do not mount when entering the chroot.
What ...
0
votes
1
answer
72
views
How to use gnome keyring under my chroot?
I have a debian bullseye chroot in which I use svn.
I want to save my password somewhere.
One of the means to do so is to use gnome-keyring password store.
What should I configure in order to allow ...
4
votes
10
answers
45k
views
VirtualBox error: Kernel driver not installed (rc=-1908) (running ubuntu 20.04 on a chromebook through crouton)
When I try to start a virtual machine in VirtualBox, I get the error above. I tried what it asked me to do, but it didn't work. My kernel version is 4.4.232. Also, here is the error message:
The ...
-3
votes
1
answer
153
views
Configure postgresql from CUBIC chroot
I'm customizing a Lubuntu 22.04 image to have a ready-to-use environment after installation. One of the points - I need to have postgresql installed and configured, means that a database is created ...
1
vote
0
answers
301
views
Run Ubuntu Touch in chroot container on Android
On my Fairphone 4 I got Ubuntu running in a chroot container using Linux Deploy.
I'd like to try out Ubuntu Touch, but I don't want to wipe my phone just to do that.
Is it possible to either run ...
1
vote
0
answers
1k
views
Access to Files Outside the Home Directory Chroot - For every Users
I want to allow access to /var/www/dev/ to every user in my system (+50) via their home directory (so they can access via FTP with chroot_local_user=YES)
For one particular user I can do:
mkdir /...
2
votes
1
answer
493
views
How to allow SSH chroot user to restart apache on host?
My first post here on Ask Ubuntu.
I have an LAMP Ubuntu server which has two vhosts defined in /etc/apache2/sites-enabled.
One of these sites (an external mirror site) must be maintained by an ...
2
votes
1
answer
687
views
How to correctly run graphical application in schroot with Qt and D-Bus?
I was trying to get Audex running inside 16.04 LTS schroot on the 20.04 LTS host.
The below method works normally for Gtk-based applications, I have tested it.
In current case I did the following:
...
0
votes
0
answers
197
views
ChromeOS crouton Ubuntu Unity return with noexec error on 128GB SD card
I just installed Ubuntu Unity chroot on my HP 19"5' chromebook in dev mode and everything went fine until I tried to run it.
The SD is formatted to ext4 and already has Linux installed, but when ...
1
vote
0
answers
462
views
dbus package installation is failing in ubuntu(22.04) chroot environment
I am trying to create a customized ubuntu iso using the ubuntu(22.04) chroot virtual environment.
In chroot environment, facing issues while installing dbus package. Error logs are attached below.
...
1
vote
2
answers
252
views
Run GUI apps inside fakechroot debootstrap
I'm following the tutorial on https://github.com/dex4er/fakechroot.
I'm trying to install and run some apps keeping them isolated on an unprivileged user, without root. They are proprietary software ...
0
votes
0
answers
50
views
patch file creation var/lib/dpkg/status is failing in chroot environment in ubuntu
I am creating customized iso using chroot and fakeroot utility in ubuntu 22.04.
In the end, while creating diff in chroot env using the patch -p1 command (mentioned full command below) getting an ...
1
vote
0
answers
188
views
Debugging a binary inside a snap
I am trying to run a binary that's from a snap through strace to debug its workings.
Because the executable is accessed via /snap/bin/prog which is symlinked to /usr/bin/snap I will only see snap's ...
0
votes
2
answers
2k
views
What happens if I do `mount --bind /dev` to a chroot directory and I remove it inside the chroot directory?
What happens if I do mount --bind /dev to a chroot directory and I chroot to the chroot directory and inside remove the /dev/ folder. I thought my host's /dev directory will be deleted but the web ...
1
vote
0
answers
1k
views
How do I chroot into a partition on which Ubuntu 20.04 is installed to run update-grub on it? Grub menu is not appearing with Windows 10 dualboot
Hello dear programmers and users. This is going to be a long and descriptive question with a series of smaller questions leading up to the main question so please read with some patience. I have a ...
0
votes
0
answers
49
views
Cannot show ubuntu login screen after edit some keyboard layout config files
I wanted to install the mtgap keyboard layout, so I go to the its github page
https://github.com/kenranunderscore/mtgap-layout
and do the following:
sudo cp xkb/mtgap_30 /usr/share/X11/xkb/symbols/
...
1
vote
0
answers
484
views
Upgrade Ubuntu 20.04 to 22.04 in chroot'ed environment?
Currently I use a Ubuntu 20.04 running on my Android phone. It is a chroot'ed environment running as a subsystem under Android. It is called 'Andronix' which cooperates with 'Termux' a package based ...
0
votes
0
answers
142
views
Troubleshooting a bash script using chroot. Are there differences between 20.04 and 22.04?
I am using a bash script that does things under a chroot. It was working well a long time ago like this :
copy stuff here and there then
sudo chroot . su - root -c "\
set -o xtrace ; \
cd /tmp/...
1
vote
0
answers
831
views
Replace Chrome OS and install Ubuntu on an Lenovo C330 ARM processor laptop
I have tried everything. Developer mode and cd;bash <(curl https://johnlewis.ie/flash_cb_fw.sh) which just restarts my laptop and beeps. I've tried booting from USB but it just beeps when I try ...
1
vote
0
answers
232
views
What is the first line of the output of `ldd bash` and why is not required when setting a new root directory to use with chroot?
I am following a tutorial about how to use chroot and set up a jailed dir. The process is to copy bash and the libraries it depends on into the 'jail' dir. To find the libraries bash depends on I ...
0
votes
0
answers
320
views
How to update to the latest bionic beaver in chroot environment
I've inherited a load of source code from some contractors. This build works on Ubuntu 18.04.06. Trying to build on previous versions of Ubuntu do not work as package dependencies are missing and the ...
4
votes
5
answers
14k
views
/dev/null permission denied in chroot environment
I have Xubuntu 18.04 in a chroot environment. I just dropped it in there from a VM I had of it.
Going into the chroot environment, if I try to run apt update I get this error:
/usr/bin/apt-key: 624:...
1
vote
2
answers
3k
views
Replace XFce4 with Cinnamon without Log-In Screen
I have a Google I/O Chrome Pixel that I've been playing around with Crouton.
This is my first real shot at Ubuntu and have made the upgrade from 12.04 -> 13.04. Using chroot, I can run both Chrome ...
18
votes
6
answers
13k
views
How do I stop all processes in a chroot?
I have a number of LVM partitions, each containing an Ubuntu installation. Occasionally, I want to do an apt-get dist-upgrade, to update an installation to the most recent packages. I do this with ...
1
vote
0
answers
163
views
Can I set up a samba share to a chroot jail user
I am using U unti server 18.04.
I have a chroot jail for untrusted users. I would like to set up a samba share to a chroot directory. Is this possible?
0
votes
0
answers
285
views
Undo `mount --rbind /dev ./chroot/dev`
I've executed mount --rbind /dev ./chroot/dev for using in chroot'ed environment.
Then I wanted to unmount it and executed umount ./chroot/dev but it fails with error:
umount: ..../chroot/dev: target ...
0
votes
0
answers
70
views
How to keep synchronized in real time two Ubuntu installations?
I'm looking for the better tool /method / technique that can help me to keep synchronized in real time two Ubuntu installations. I want that every change I make to one of them will be immediately ...
0
votes
0
answers
539
views
reinstall ubuntu-desktop after accidently removed ibus [duplicate]
I accidentally removed ibus on my ubuntu 16 which is upgraded from 14.04 and suddenly I have unmet dependencies, broken packages, etc. I managed to chroot into the system using a live-cd-usb and ...
0
votes
2
answers
16k
views
edit resolv.conf
I can't edit /etc/resolv.conf, error: permission denied
I upgraded from 16.04 to 16.10 and keyboard & mouse stopped working, following ubuntu KB asks to mount chroot, chroot mounted but dns not ...
4
votes
2
answers
10k
views
Provide an Xserver To Chroot
Description:
I'm using a Lubuntu 13.10 X86-64 livecd to chroot into another Lubuntu 13.10 X86-64 located on my hard drive in a folder called chroot. I've had no trouble using the terminal to chroot ...