RUVIDEO
Поделитесь видео 🙏

Ubuntu: I got this error: "chroot: failed to run command '/bin/bash': Exec format error"

📁 Обучение 👁️ 20 📅 01.12.2023

Ubuntu: During a chroot attempt, I got this error: "chroot: failed to run command '/bin/bash': Exec format error"


The Question: I was following the instructions of this tutorial http://ubuntuforums.org/
showthread.php?t=1581099, when I encountered an error at step 1, as I launched
the command
sudo chroot /mnt/temp
The error was the following:
chroot: failed to run command `/bin/bash': Exec format error
Where does that come from? How do I get through?

Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful):

== This solution helped 21 people ==
Verify that you are using the right Live CD. For example, verify you are not
using a 32bit CD instead of a 64bit CD. You need a 64bit kernel to run 64bit
code, so check your architecture.
Assuming you mounted your system to be chrooted in /media/sda1, to determine
the architecture you can:
ls /media/sda1/*
if you see lib64 in the output, it's probably a 64bit system

== This solution helped 1 person ==
The error means that your jail (/mnt/temp) does not contain a bash shell, or
does not contain the libraries required to run the bash shell.
If you created your jail using something like this:
debootstrap --variant=buildd --arch i386 lucid /mnt/temp http://
archive.ubuntu.com/ubuntu/
You probably meant to do this instead:
debootstrap --variant=minbase --arch i386 lucid /mnt/temp http://
archive.ubuntu.com/ubuntu/
However, as a technical answer to your problem, try:
cp -r /bin /lib /mnt/temp
This should allow you to chroot successfully, at which point you can do other
things.
There are about a million things wrong with doing that though, and almost
certainly you do not want to do that. Use minbase when you create your jail, or
install ubuntu on a blank target (eg. a virtual machine) and create a tar
archive of the entire system which you then decompress into /mnt/temp.

With thanks & praise to God! With thanks to the many people who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music: https://www.bensound.com/royalty-free-music | Images: https://stocksnap.io/license & others | With thanks to user zx485 (https://askubuntu.com/users/51957), user Ismail Moukafih (https://askubuntu.com/users/517399), user Grand Oxymore (https://askubuntu.com/users/6039), user enzotib (https://askubuntu.com/users/2647), user Doug (https://askubuntu.com/users/14562), user Agmenor (https://askubuntu.com/users/5592), user 4levels (https://askubuntu.com/users/21432), and the Stack Exchange Network (http://askubuntu.com/questions/14280). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything looks amiss at Roel D.OT VandePaar A.T gmail.com.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Ubuntu: I got this error: "chroot: failed to run command '/bin/bash': Exec format error"», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.