LINUX.ORG.RU

Помогите установить virtualbox на Debian-дистрибутив

 


0

1

Привет

При попытке получаю вот это:

$ apt-get install virtualbox
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
 
The following packages have unmet dependencies:
 libpulse0:amd64 : Depends: libdbus-1-3:amd64 (>= 1.9.14) but it is not installable
                   Depends: libsystemd0:amd64
E: Unable to correct problems, you have held broken packages.

Куда копать?

★★★★★

Ответ на: комментарий от TeopeTuK

Сначала подробнее опиши, что за Debian дистрибутив.

Дистрибутив Knoppix 9.1.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux bullseye/sid
Release:        12-updates
Codename:       n/a

Аккуратно следую Knoppix_Remastering_Howto. Переписал файлы на раздел, сделал chroot, apt update (пришлось повозиться с ключами репозиториев, но /etc/apt/sources.list не трогал). Попробовал apt-get install virtualbox, выдало ошибки по libpulse0:amd64 и по python3. После apt-get install python3 ошибки по python3 ушли, но с libpulse0:amd64 такой фокус не прошёл.

И покажи, что выводит попытка установить libdbus-1-3

Устанавливает, но ситуацию это не меняет:

Детали: https://pastebin.com/Vp0fH6LC

P. S. В Дебиан профан, но в целом с Линукс дружу хорошо.

Kroz ★★★★★
() автор топика
Последнее исправление: Kroz (всего исправлений: 4)
Ответ на: комментарий от Kroz

Если присмотреться к выложенному тобой логу, то можно заметить, что у тебя установлен 32-битный дистрибутив (архитектура i386). А virtualbox устанавливается 64-битный (архитектура amd64). Подозреваю, что 32-битного virtualbox вообще не бывает…

TeopeTuK ★★★★
()
Последнее исправление: TeopeTuK (всего исправлений: 1)

Куда копать?

тебе нужен sid пропиши в репу вот такое

deb http://deb.debian.org/debian/ sid main non-free non-free-firmware contrib
deb-src http://deb.debian.org/debian/ sid main non-free non-free-firmware contrib
amd_amd ★★★★★
()
Последнее исправление: amd_amd (всего исправлений: 1)
Ответ на: комментарий от TeopeTuK

Если присмотреться к выложенному тобой логу, то можно заметить, что у тебя установлен 32-битный дистрибутив (архитектура i386). А virtualbox устанавливается 64-битный (архитектура amd64). Подозреваю, что 32-битного virtualbox вообще не бывает…

Интересная мысль, спасибо, будут думать.

Kroz ★★★★★
() автор топика
Ответ на: комментарий от Kroz

Жуть какая. Когда-то кноппикс был 32битным дистрибутивом с 64битным ядром. Возможно, ничего не поменялось.

Ну и прописывать репозитории от всех возможных веток дебиана в другой дистрибутив рекомендуется при полном понимании чего и зачем и осознании возможных последствий

undef ★★
()
Последнее исправление: undef (всего исправлений: 1)
Ответ на: комментарий от undef

Выложи интереса для dpkg –print-architecture и dpkg –print-foreign-architecture

Это если при загрузке указать knoppix64:

$ dpkg --print-architecture
i386

$ dpkg --print-foreign-architectures
amd64

$ uname -a
Linux Microknoppix 5.10.10-64 #3 SMP PREEMPT Sun Feb 7 09:26:54 CET 2021 x86_64 GNU/Linux
Kroz ★★★★★
() автор топика
Ответ на: комментарий от Kroz

Нда. В sources.list такая мешанина веток изначально была?

Ты обновил лишь 32-битные пакеты из этих репозиториев. 64-битные ставятся так: apt-get install libpulse0:amd64.

Перед установкой попробуй apt-get install -s libpulse0:amd64, покажет что поставится и удалится. Для libdbus и libsystemd0 аналогично.

undef ★★
()
Ответ на: комментарий от undef

Похоже, не получится, ибо см. коммент выше

Перед установкой попробуй apt-get install -s libpulse0:amd64, покажет что поставится и удалится. Для libdbus и libsystemd0 аналогично.

$ apt-get install -s libpulse0:amd64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
 
The following packages have unmet dependencies:
 libdbus-1-3:amd64 : Depends: libsystemd0:amd64
 libpulse0:amd64 : Depends: libsystemd0:amd64
E: Unable to correct problems, you have held broken packages.
 
$ apt-get install -s libdbus-1-3:amd64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
 
The following packages have unmet dependencies:
 libdbus-1-3:amd64 : Depends: libsystemd0:amd64
E: Unable to correct problems, you have held broken packages.
 
$ apt-get install -s libsystemd0:amd64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
 
The following packages have unmet dependencies:
 libsystemd0 : Breaks: libsystemd0:amd64 (!= 247.3-1)
 libsystemd0:amd64 : Breaks: libsystemd0 (!= 254.1-2)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Kroz ★★★★★
() автор топика
Ответ на: комментарий от Kroz

libsystemd0 : Breaks: libsystemd0:amd64 (!= 247.3-1) libsystemd0:amd64 : Breaks: libsystemd0 (!= 254.1-2)

Нельзя ставить библиотеки разных версий в multiarch.

А что говорит apt-get install -s libsystemd0? Обещает обновить systemd или доломать систему?

Похоже, не получится, ибо см. коммент выше

Это про то, что с 32-bit библиотеками не заработает. Поэтому предлагают 64-bit chroot. А ты пытаешься с помощью multiarch. Возможно, никто до тебя так и не пытался делать.

undef ★★
()
Ответ на: комментарий от undef

А что говорит apt-get install -s libsystemd0

Я делал apt-get install -s libsystemd0:amd64 - не даёт. Детали в логе предыдущего сообщения (последняя команда).

В общем, с Knoppix я забросил. Даже не знаю какой другой LiveCD взять.

Учитывая, что с Debian я не очень, склоняюсь к тому, что собственный кастомный собрать будет эффективней. Правда статей на эту тему в Интернете очень мало…

В любом случае, спасибо за помощь.

Kroz ★★★★★
() автор топика