Skip to main content

Questions tagged [chroot]

a linux command to change the filesystem root a process can see, limiting it's access to the real filesystem root

Filter by
Sorted by
Tagged with
1 vote
0 answers
50 views

Error reading CPU table when running `apt` inside a chroot environment on Ubuntu server

Following this question, I am trying to set up a chroot environment on my Ubuntu server running on a Raspberry Pi. Here are the steps I followed to create the chroot environment: mkdir -p myenv mkdir -...
Foad's user avatar
  • 893
0 votes
0 answers
34 views

Chroot into current filesystem?

I need to test out setting up some development tools which has been a pain and messed up my system to have to reinstall for the 9th time. I discovered chroot, this will relief a lot of pain. But I am ...
stackcen's user avatar
2 votes
1 answer
53 views

Remove /dev mount point without unmount in Host

Here is the unmount method for unmounting all previously mounted folders: https://unix.stackexchange.com/questions/61885/how-to-unmount-a-formerly-chrootd-filesystem I use the following command to ...
stackbiz's user avatar
  • 383
0 votes
0 answers
77 views

cannot install centos chroot with rinse(8)

I don't know how to lather before rinse(8). $ ubuntu-version No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy and/...
James K. Lowden's user avatar
0 votes
1 answer
295 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 ...
TommyPeanuts's user avatar
  • 1,126
0 votes
0 answers
136 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 ...
grep's user avatar
  • 117
0 votes
0 answers
202 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 ...
azzid's user avatar
  • 866
0 votes
0 answers
159 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 ...
Umang Jais's user avatar
0 votes
0 answers
170 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 ...
ssrm7_bot's user avatar
1 vote
1 answer
1k 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/...
hergo herna's user avatar
0 votes
0 answers
8k 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/...
teityura's user avatar
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 ...
galinette's user avatar
  • 173
0 votes
0 answers
281 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 ...
Strohhut's user avatar
  • 101
0 votes
0 answers
118 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 ...
Utz's user avatar
  • 79
1 vote
0 answers
31 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 ...
rdelangh's user avatar
1 vote
0 answers
334 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 ...
Ryan Fitzgerald's user avatar
0 votes
1 answer
87 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 ...
SR_'s user avatar
  • 103
-3 votes
1 answer
179 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 ...
meridbt's user avatar
  • 101
2 votes
1 answer
3k 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?
s.k's user avatar
  • 1,330
1 vote
0 answers
326 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 ...
Dakkaron's user avatar
  • 284
3 votes
3 answers
14k 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 ...
Exquisite Mong's user avatar
2 votes
1 answer
541 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 ...
Andy Woolford's user avatar
0 votes
0 answers
205 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 ...
FNaF_Master109's user avatar
1 vote
0 answers
582 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. ...
Dushyanth's user avatar
1 vote
2 answers
282 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 ...
Hikari's user avatar
  • 203
0 votes
0 answers
52 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 ...
Dushyanth's user avatar
1 vote
0 answers
211 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 ...
Bram's user avatar
  • 2,581
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 ...
Aditya Raj Bhatt's user avatar
0 votes
0 answers
52 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/ ...
WestMountain's user avatar
0 votes
1 answer
532 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 ...
user513667's user avatar
0 votes
0 answers
151 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/...
mkl's user avatar
  • 1
1 vote
0 answers
253 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 ...
stanley's user avatar
  • 231
0 votes
0 answers
336 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 ...
Owl's user avatar
  • 566
1 vote
0 answers
169 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?
Racer's user avatar
  • 11
0 votes
0 answers
298 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 ...
Ihor Drachuk's user avatar
0 votes
0 answers
81 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 ...
Marietto's user avatar
  • 595
0 votes
0 answers
382 views

apt update fails within proot

I'm building an image for an arm64 machine in a docker environment. I get the 20.04 base system by starting with debootstrap --components=main --arch=arm64 --foreign focal ./mnt http://ports.ubuntu....
obachtos's user avatar
  • 101
1 vote
0 answers
25 views

Trouble installing packages in a fresh chroot [duplicate]

I created a chroot using the instructions here, substituting focal for lucid. Now I'd like to start installing packages, starting with Python, but I'm not sure what kind of setup I need to perform ...
danben's user avatar
  • 121
0 votes
0 answers
54 views

Mistakenly used rm - rf in / but cancelled .How to recover now.? [duplicate]

I have unknowningly used rm -rf in the ubuntu 18 / and cancelled soon .. within that moment some folders for deleted including /bin /sbin /opt /etc . But we still have /usr /lib / home /root /var ...
Damn devil's user avatar
0 votes
1 answer
398 views

How can I log in via ssh into a chroot

I have a Synology NAS and was frustrated with the available packages. So I installed a Debian chroot (after a lot of googling, as I am just a normal user). This is great. Now I would like to work ...
MDoe's user avatar
  • 115
0 votes
0 answers
5k views

chroot failed to run command

Now after 2 days of pulling my hair it is obvious for me that on other ubuntu machine I can chroot into a VM client (VBOX). I am trying to chroot from live media to a ubuntu VM client. I mounted: ...
Brad Thompson's user avatar
0 votes
0 answers
366 views

SFTP read-only access to another directory

My Goal: I have sftp user sftp1 which has chrootdir to /sftp/sftp1. I want to add read-only access via sftp to user sftp1 on directory which is /home/user2/some/path/to/directory Expected result: User ...
Tqq's user avatar
  • 1
0 votes
2 answers
3k 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 ...
Chan Kim's user avatar
  • 2,081
3 votes
1 answer
2k views

how to make ubuntu install iso file for arm64 machine on x86-64 machine?

I'm trying to install ubuntu 18.04 on a qemu virtual machine which is a modified version of qemu's arm virt machine. I checked that I can install ubuntu 18.04 on arm virt machine as directed here, a ...
Chan Kim's user avatar
  • 2,081
1 vote
1 answer
4k views

SystemD service for running deamon in chroot

I have set up my raspberry pi running ubuntu 20.04 server so it can run teamspeak with box86. To do that I set up a chroot in ls /srv/chroot/focal-armhf/ with debootstrap. In that directory I compiled ...
FalcoGer's user avatar
  • 875
-1 votes
1 answer
944 views

Can not delete chroot after aborting it's creation

I am trying to set up a chroot and I ran sudo qemu-debootstrap --arch=amd64 stretch /srv/chroot/focal-amd64 during the second stage i realized that I wanted focal, not stretch. Copy & paste error....
FalcoGer's user avatar
  • 875
0 votes
2 answers
6k views

chroot : sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set I have this since I tried to give a chroot user sudo permissions. The commande I ran : chown root:root /usr/bin/sudo chmod 4755 /...
Fazou's user avatar
  • 3
0 votes
2 answers
238 views

How to install Ubuntu in a file?

Everything in Linux-based systems is a file. Everytime I install Ubuntu, I choose a root partition. Now, I want to create a root filesystem, but in a file, for example ~/ubuntu.img. I've got another ...
adazem009's user avatar
  • 1,112
0 votes
0 answers
591 views

debconf: DbDriver “config”: /var/cache/debconf/config.dat is locked by another process: No locks available [duplicate]

I want to run some x86_64 apps from jetson nano,for example google chrome and teamviewer and I want also to copy heavy files from the sd card of the nano on a larger disk on the desktop PC. For this ...
Marietto's user avatar
  • 595
1 vote
0 answers
324 views

How to run some graphical i386 apps on Ubuntu 18.04 (ARM64) / xfce4 / jetson nano

I'm trying to run some graphical i386 apps on ARM64 / xfce4 / jetson nano. I have configured the I386 / bionic chroot environment following and adapting a little bit this tutorial : https://www....
Marietto's user avatar
  • 595

1
2 3 4 5
8