[+] Widows7 i Virtualbox (Debian) - instalacja GRUB-a

Pomoc dotycząca instalacji systemu
xo83
Posty: 30
Rejestracja: 09 grudnia 2008, 13:17

Post autor: xo83 »

lun pisze:xo83 końcówka amd64 nie oznacza że jest to przeznaczone dla dwóch procesorów. Oznacza to architekturę procesora (64bity). Więc jeśli zainstalowałeś Debiana w wersji 32bit to nie próbuj instalować dodatków w innej wersji.

Tak, mam AMD Athlon Dual Core.
Zainstalowana wersja pingwina "Debian (64bit)"
Awatar użytkownika
lun
Beginner
Posty: 266
Rejestracja: 01 lutego 2010, 22:06
Lokalizacja: Warszawa

Post autor: lun »

Naprawdę nie rozumiem dlaczego u ciebie jest z tym problem. Zainstalowałem sobie specjalnie Debiana na wirtualnej maszynie, zainstalowałem dodatki bez problemu (oczywiście pomijam zmiany w modułach jądra).

Nie wiem czy coś robisz źle (i jeśli tak to w którym miejscu), czy to jakiś problem z architekturą 64 bitową (u mnie procesor 32 bitowy więc i taka instalacja Debiana).

Wklej logi:

Kod: Zaznacz cały

cat /var/log/VboxGuestAdditions.log
cat /var/log/vboxadd-install.log
cat /var/log/vbox-install-x11.log
xo83
Posty: 30
Rejestracja: 09 grudnia 2008, 13:17

Post autor: xo83 »

lun pisze: Wklej logi:

Kod: Zaznacz cały

cat /var/log/VboxGuestAdditions.log
cat /var/log/vboxadd-install.log
cat /var/log/vbox-install-x11.log

Kod: Zaznacz cały

1. debian:~# cat /var/log/VBoxGuestAdditions.log

Please install bzip2.
2. brak pliku
3. brak pliku
Co jeszcze próbowałem jeszcze raz zainstalować i pojawiło się takie coś:

Kod: Zaznacz cały

 debian:/media/cdrom0# bash ./VBoxLinuxAdditions-amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.2.10 Guest Additions for Linux........
VirtualBox Guest Additions installer
Please install the bzip2 utility.
./install.sh: line 245: bzip2: command not found
tar: To nie wygląda jak archiwum tar
tar: Zakończenie z błędem z powodu uprzednich błędów
./install.sh: line 258: bzip2: command not found
tar: To nie wygląda jak archiwum tar
tar: Zakończenie z błędem z powodu uprzednich błędów
debian:/media/cdrom0# 
Awatar użytkownika
lun
Beginner
Posty: 266
Rejestracja: 01 lutego 2010, 22:06
Lokalizacja: Warszawa

Post autor: lun »

Kod: Zaznacz cały

dpkg -l | grep bzip
xo83
Posty: 30
Rejestracja: 09 grudnia 2008, 13:17

Post autor: xo83 »

lun pisze:

Kod: Zaznacz cały

dpkg -l | grep bzip

Kod: Zaznacz cały

debian:/media/cdrom0# dpkg -l | grep bzip
debian:/media/cdrom0# bash ./VBoxLinuxAdditions-amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.2.10 Guest Additions for Linux........
VirtualBox Guest Additions installer
Please install the bzip2 utility.
./install.sh: line 245: bzip2: command not found
tar: To nie wygląda jak archiwum tar
tar: Zakończenie z błędem z powodu uprzednich błędów
./install.sh: line 258: bzip2: command not found
tar: To nie wygląda jak archiwum tar
tar: Zakończenie z błędem z powodu uprzednich błędów
debian:/media/cdrom0#   
Dodane:
Ściągnąłem "debian-506-i386-kde-CD-1", żeby sprawdzić czy uruchomi się na architekturze x86.
W czasie instalacji zaciekawiła mnie jedna opcja wyboru:

Kod: Zaznacz cały

*Środowisko graficzne
*Serwer WWW
*Serwer DNS
*...

[b]*Laptop[/b]
*System podstawowy
Czy podczas instalacji dla architektury amd86 nie powinienem wybrać również
opcji laptop?
Nie wiem do czego ona się odnosi?
Wydaje mnie się, że nie powinno to mieć większego znaczenia, ale kto wie.
Dla architektury i386, której instalację wykonuje, nie instaluję tej opcji bo nie wiem do czego służy; sprawdzę jedynie czy będę mógł zainstalować VBLA.

P.S. Już się zastanawiam nad przeinstalowaniem Windows7. Systemu tego nie instalowałem ani w zasadzie go nie konfigurowałem (aktualna wersja, świeże sterowniki, nie usunięte zbędne oprogramowanie itd.).
Już sam nie wiem co robić?

Edycja:
Niestety ta sama sytuacja.

Kod: Zaznacz cały

debian:/media/cdrom0# ./VBoxLinuxAdditions-x86.run
bash: ./VBoxLinuxAdditions-x86.run: /bin/sh: bad interpreter: Brak dostępu
debian:/media/cdrom0# bash ./VBoxLinuxAdditions-x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.2.10 Guest Additions for Linux........
VirtualBox Guest Additions installer
Please install the bzip2 utility.
./install.sh: line 245: bzip2: command not found
tar: To nie wygląda jak archiwum tar
tar: Zakończenie z błędem z powodu uprzednich błędów
./install.sh: line 258: bzip2: command not found
tar: To nie wygląda jak archiwum tar
tar: Zakończenie z błędem z powodu uprzednich błędów
debian:/media/cdrom0# 
Edycja:
Panie i panowie jakaś paranoja.
Udało mi się jakiś cudem to zainstalować, ale nie mogę uruchomić trybu zintegrowanego.

Kod: Zaznacz cały

 debian:~# apt-get install bzip2
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
Sugerowane pakiety:
  bzip2-doc
Zostaną zainstalowane następujące NOWE pakiety:
  bzip2
0 aktualizowanych, 1 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych.
Konieczne pobranie 46,0kB archiwów.
Po tej operacji zostanie dodatkowo użyte 156kB miejsca na dysku.
Pob: 1 http://security.debian.org lenny/updates/main bzip2 1.0.5-1+lenny1 [46,0kB]
Pobrano 46,0kB w 0s (77,5kB/s)
Zaznaczenie poprzednio niezaznaczonego pakietu bzip2.
(Odczytywanie bazy danych ... 93357 plików i katalogów obecnie zainstalowanych.)
Rozpakowanie bzip2 (z .../bzip2_1.0.5-1+lenny1_i386.deb) ...
Przetwarzanie wyzwalaczy dla man-db...
Konfigurowanie bzip2 (1.0.5-1+lenny1) ...
debian:~# cd /media/cdrom0
debian:/media/cdrom0# dir
debian:/media/cdrom0# dir
debian:/media/cdrom0# dir
debian:/media/cdrom0# cd
debian:~# cd /media/cdrom0
debian:/media/cdrom0# dir
AMD_PCnet    driver  os2                     VBoxLinuxAdditions.run
AUTORUN.INF  gina    VBoxGuestAdditions.exe  VBoxSolarisAdditions.pkg
debian:/media/cdrom0# ./VBoxLinuxAdditions.run
-su: ./VBoxLinuxAdditions.run: /bin/sh: bad interpreter: Brak dostępu
debian:/media/cdrom0# su
debian:/media/cdrom0# ./VBoxLinuxAdditions.run
bash: ./VBoxLinuxAdditions.run: /bin/sh: bad interpreter: Brak dostępu
debian:/media/cdrom0# bash ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 1.6.2 Guest Additions for Linux installation.............................................................................................................................................................................
VirtualBox 1.6.2 Guest Additions installation
Please install GNU make.
Please install the build and header files for your current Linux kernel.
The current kernel version is 2.6.26-2-686
Please install the GNU compiler.
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.
debian:/media/cdrom0#
Tutaj dodam, że ,,VBLA'' nie da się zainstalować z obrazu *.iso (10MB), który jest w samej wersji instalacyjnej virtualboksa. Udało się zainstalować z pobranego obrazu z internetu o objętości 31MB.

Instalacja z obrazu *.iso o objętości 31MB.

Kod: Zaznacz cały

debian:/media/cdrom0# ./VBoxLinuxAdditions-x86.run
-su: ./VBoxLinuxAdditions-x86.run: /bin/sh: bad interpreter: Brak dostępu
debian:/media/cdrom0# su
debian:/media/cdrom0# ./VBoxLinuxAdditions-x86.run
bash: ./VBoxLinuxAdditions-x86.run: /bin/sh: bad interpreter: Brak dostępu
debian:/media/cdrom0# bash ./VBoxLinuxAddition-x86.run
bash: ./VBoxLinuxAddition-x86.run: Nie ma takiego pliku ani katalogu
debian:/media/cdrom0# dir
32Bit        VBoxLinuxAdditions-amd64.run    VBoxWindowsAdditions.exe
64Bit        VBoxLinuxAdditions-x86.run      VBoxWindowsAdditions-x86.exe
AUTORUN.INF  VBoxSolarisAdditions.pkg
autorun.sh   VBoxWindowsAdditions-amd64.exe
debian:/media/cdrom0# bash ./VBoxLinuxAdditions-x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.2.10 Guest Additions for Linux........
VirtualBox Guest Additions installer
Uninstalling old VirtualBox DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...fail!
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.  Once you have corrected it, you can
run

  /etc/init.d/vboxadd setup

to build them.
Doing non-kernel setup of the Guest Additions ...done.
Installing the Window System drivers
Installing X.Org Server 1.4 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services components ...done.
debian:/media/cdrom0# 
Zrestartowałem system, ale niestety. Mało tego, przy uruchamianiu systemu w którymś z wierszy mignęło mi przed oczami mniej więcej coś takiego:

Kod: Zaznacz cały

 Loading VirtualBoxQuestAdditions... failure 
Możecie jeszcze jakoś pomóc?

Edycja:
Jeszcze zauważyłem teraz w procesie instalacji

Kod: Zaznacz cały

Building the VirtualBox Guest Additions kernel modules ...fail!
Zajrzałem do logu i oto takie coś:

Kod: Zaznacz cały

/usr/share/VBoxGuestAdditions/test/build_in_tmp: line 55: make: command not found
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
Jeszcze raz przepraszam za ilość edycji.
giaur
Member
Posty: 1915
Rejestracja: 25 maja 2007, 22:16

Post autor: giaur »

Nie słuchaj ich. Jako root:

Kod: Zaznacz cały

echo "deb http://download.virtualbox.org/virtualbox/debian lenny non-free" >> /etc/apt/sources.list
apt-get update
apt-get install virtualbox-guest-additions
Zrozumcie, że po to wymyślona została idea repozytoriów żeby z nich korzystać zamiast robić sobie bałagan w systemie.
xo83
Posty: 30
Rejestracja: 09 grudnia 2008, 13:17

Post autor: xo83 »

giaur pisze:Nie słuchaj ich. Jako root:

Kod: Zaznacz cały

echo "deb http://download.virtualbox.org/virtualbox/debian lenny non-free" >> /etc/apt/sources.list
apt-get update
apt-get install virtualbox-guest-additions
Zrozumcie, że po to wymyślona została idea repozytoriów żeby z nich korzystać zamiast robić sobie bałagan w systemie.
Niestety:

Kod: Zaznacz cały

debian:~# echo "deb http://download.virtualbox.org/virtualbox/debian lenny non-free" >> /etc/apt/sources.list
debian:~# apt-get update
Traf http://ftp.pl.debian.org lenny Release.gpg
Traf http://ftp.pl.debian.org lenny/main Translation-pl
Pob: 1 http://repo.dug.net.pl stable Release.gpg [198B]
Ign http://repo.dug.net.pl stable/main Translation-pl
Ign http://repo.dug.net.pl stable/contrib Translation-pl
Pob: 2 http://www.kadu.net stable Release.gpg [189B]
Ign http://www.kadu.net stable/main Translation-pl
Traf http://repo.dug.net.pl stable Release
Ign http://ftp.pl.debian.org lenny/non-free Translation-pl
Ign http://ftp.pl.debian.org lenny/contrib Translation-pl
Traf http://ftp.pl.debian.org lenny Release
Traf http://security.debian.org lenny/updates Release.gpg
Ign http://security.debian.org lenny/updates/main Translation-pl
Błąd http://repo.dug.net.pl stable Release

Ign http://security.debian.org lenny/updates/contrib Translation-pl
Pob: 3 http://www.debian-multimedia.org lenny Release.gpg [198B]
Ign http://www.debian-multimedia.org lenny/main Translation-pl
Traf http://volatile.debian.org lenny/volatile Release.gpg
Ign http://volatile.debian.org lenny/volatile/main Translation-pl
Ign http://volatile.debian.org lenny/volatile/contrib Translation-pl
Pob: 4 http://deb.opera.com stable Release.gpg [189B]
Ign http://deb.opera.com stable/non-free Translation-pl
Traf http://www.kadu.net stable Release
Błąd http://www.kadu.net stable Release

Pob: 5 http://repo.dug.net.pl stable Release [5933B]
Ign http://security.debian.org lenny/updates/non-free Translation-pl
Ign http://repo.dug.net.pl stable Release
Ign http://ftp.pl.debian.org lenny/main Packages/DiffIndex
Traf http://security.debian.org lenny/updates Release
Ign http://www.debian-multimedia.org lenny/non-free Translation-pl
Ign http://volatile.debian.org lenny/volatile/non-free Translation-pl
Traf http://volatile.debian.org lenny/volatile Release
Pob: 6 http://www.kadu.net stable Release [3773B]
Traf http://deb.opera.com stable Release
Ign http://repo.dug.net.pl stable/main Packages/DiffIndex
Ign http://www.kadu.net stable Release
Ign http://ftp.pl.debian.org lenny/main Sources/DiffIndex
Ign http://ftp.pl.debian.org lenny/non-free Packages/DiffIndex
Błąd http://deb.opera.com stable Release

Ign http://ftp.pl.debian.org lenny/contrib Packages/DiffIndex
Ign http://ftp.pl.debian.org lenny/non-free Sources/DiffIndex
Ign http://ftp.pl.debian.org lenny/contrib Sources/DiffIndex
Traf http://www.debian-multimedia.org lenny Release
Błąd http://www.debian-multimedia.org lenny Release

Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://volatile.debian.org lenny/volatile/main Packages/DiffIndex
Ign http://repo.dug.net.pl stable/contrib Packages/DiffIndex
Traf http://ftp.pl.debian.org lenny/main Packages
Traf http://ftp.pl.debian.org lenny/main Sources
Ign http://www.kadu.net stable/main Packages/DiffIndex
Traf http://ftp.pl.debian.org lenny/non-free Packages
Pob: 7 http://deb.opera.com stable Release [1067B]
Ign http://deb.opera.com stable Release
Pob: 8 http://www.debian-multimedia.org lenny Release [26,5kB]
Traf http://repo.dug.net.pl stable/main Packages
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex
Ign http://security.debian.org lenny/updates/contrib Packages/DiffIndex
Ign http://security.debian.org lenny/updates/non-free Packages/DiffIndex
Ign http://security.debian.org lenny/updates/contrib Sources/DiffIndex
Ign http://security.debian.org lenny/updates/non-free Sources/DiffIndex
Ign http://www.kadu.net stable/main Sources/DiffIndex
Ign http://volatile.debian.org lenny/volatile/main Sources/DiffIndex
Ign http://volatile.debian.org lenny/volatile/contrib Packages/DiffIndex
Ign http://volatile.debian.org lenny/volatile/non-free Packages/DiffIndex
Ign http://deb.opera.com stable/non-free Packages/DiffIndex
Traf http://repo.dug.net.pl stable/contrib Packages
Traf http://security.debian.org lenny/updates/main Packages
Traf http://security.debian.org lenny/updates/main Sources
Traf http://backports.debian.org lenny-backports Release.gpg
Ign http://backports.debian.org lenny-backports/main Translation-pl
Traf http://security.debian.org lenny/updates/contrib Packages
Traf http://security.debian.org lenny/updates/non-free Packages
Traf http://www.kadu.net stable/main Packages
Traf http://volatile.debian.org lenny/volatile/main Packages
Traf http://volatile.debian.org lenny/volatile/main Sources
Ign http://www.debian-multimedia.org lenny Release
Ign http://deb.opera.com stable/non-free Packages
Traf http://security.debian.org lenny/updates/contrib Sources
Traf http://security.debian.org lenny/updates/non-free Sources
Traf http://www.kadu.net stable/main Sources
Traf http://volatile.debian.org lenny/volatile/contrib Packages
Traf http://volatile.debian.org lenny/volatile/non-free Packages
Traf http://www.debian-multimedia.org lenny/main Packages/DiffIndex
Traf http://deb.opera.com stable/non-free Packages
Traf http://www.debian-multimedia.org lenny/non-free Packages/DiffIndex
Traf http://www.debian-multimedia.org lenny/main Sources/DiffIndex
Ign http://www.debian-multimedia.org lenny/non-free Sources/DiffIndex
Traf http://ftp.pl.debian.org lenny/contrib Packages
Traf http://ftp.pl.debian.org lenny/non-free Sources
Traf http://ftp.pl.debian.org lenny/contrib Sources
Traf http://www.debian-multimedia.org lenny/main Sources
Pob: 9 http://download.virtualbox.org lenny Release.gpg [197B]
Traf http://www.debian-multimedia.org lenny/non-free Sources
Ign http://backports.debian.org lenny-backports/contrib Translation-pl
Ign http://backports.debian.org lenny-backports/non-free Translation-pl
Traf http://backports.debian.org lenny-backports Release
Traf http://backports.debian.org lenny-backports/main Packages/DiffIndex
Ign http://download.virtualbox.org lenny/non-free Translation-pl
Traf http://backports.debian.org lenny-backports/contrib Packages/DiffIndex
Traf http://backports.debian.org lenny-backports/non-free Packages/DiffIndex
Traf http://download.virtualbox.org lenny Release
Błąd http://download.virtualbox.org lenny Release

Pob: 10 http://download.virtualbox.org lenny Release [3457B]
Ign http://download.virtualbox.org lenny Release
Ign http://download.virtualbox.org lenny/non-free Packages/DiffIndex
Traf http://download.virtualbox.org lenny/non-free Packages
Pobrano 41,7kB w 3s (11,1kB/s)
Czytanie list pakietów... Gotowe
W: GPG error: http://repo.dug.net.pl stable Release: Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza publicznego: NO_PUBKEY E95E1FEBA63AE9D2
W: GPG error: http://www.kadu.net stable Release: Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza publicznego: NO_PUBKEY 5EC42C53D86A66BA
W: GPG error: http://deb.opera.com stable Release: Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza publicznego: NO_PUBKEY F9A2F76A9D1A0061
W: GPG error: http://www.debian-multimedia.org lenny Release: Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza publicznego: NO_PUBKEY 07DC563D1F41B907
W: GPG error: http://download.virtualbox.org lenny Release: Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza publicznego: NO_PUBKEY 54422A4B98AB5139
W: Należy uruchomić apt-get update aby naprawić te problemy.
debian:~#
debian:~#
debian:~#
debian:~# sudo apt-key adv --recv-keys --keyserver packages.debian.org/lenny/debian-keyring 54422A4B98AB5139
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --recv-keys --keyserver packages.debian.org/lenny/debian-keyring 54422A4B98AB5139
gpg: zapytanie o klucz 98AB5139 w serwerze hkp packages.debian.org
gpg: przekroczenie limitu czasu połączenia z serwerem kluczy
gpg: odbiór z serwera kluczy nie powiódł się: błąd serwera kluczy
debian:~#  
Znalazłem na stronie:
http://linux.aldeby.org/update-virtualb ... ab5139.htm
instrukcję jak pobrać klucz. Instrukcja jest pod Ubuntu, ale wpisywałem inne strony z kluczami do Debiana i niestety.
Przykładową stronę zostawiłem abyście mogli zobaczyć, czy aby na pewno dobrze to robię.
3 godziny na nic...
fnmirk
Senior Member
Posty: 8321
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

&quot pisze:3 godziny na nic...
Jeszcze stracisz trzy tygodnie, jak będziesz bezmyślnie przepisywał polecenia, bez przejrzenia działu dla początkujących.
http://debian.linux.pl/threads/5676-Prz ... -napiszesz!
http://debian.linux.pl/threads/13294-Al ... #post84983
http://debian.linux.pl/threads/41-Klucz ... 20#post220
giaur
Member
Posty: 1915
Rejestracja: 25 maja 2007, 22:16

Post autor: giaur »

Klucze mozna olać. Ale gdybyś mocno chciał to:

Kod: Zaznacz cały

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
xo83
Posty: 30
Rejestracja: 09 grudnia 2008, 13:17

Post autor: xo83 »

Dzięki wielkie Panowie!
Pozdrawiam
ODPOWIEDZ