Portál AbcLinuxu, 10. května 2025 22:35

Dotaz: Debian Wheezy - migrace 32bit na 64bit - krok zpět

26.6.2015 11:29 Bill Gates
Debian Wheezy - migrace 32bit na 64bit - krok zpět
Přečteno: 626×
Odpovědět | Admin
Ahoj, zkoušel jsem migrovat z 32bit na 64bit ale rozmyslel jsem si to. Nebudu to řešit migrací ale nainstaluju 64bit debian 8. Teď mám ale asi problém.

Použil jsem tento návod

http://www.ewan.cc/?q=node/90

Prošel jsem krokem 5

dpkg --add-architecture amd64 
apt-get update 
apt-get install linux-image-amd64:amd64 debootstrap


ale používám jako běžící jádro linux-image-3.16.0-0.bpo.4-686-pae a ono ho to chce odstranit, na což jsem byl upozorněn varováním, že toto může způsobit, že nenabootoju. To si nemůžu dovolit teď řešit, takže jsem to chtěl odložit na později.

Potřebuju nainstalovat rdesktop ale končím na nevyřešených závislostech.

apt-get install rdesktop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-3.16.0-0.bpo.4-686-pae : Depends: initramfs-tools (>= 0.110~) but it is not going to be installed or
                                               dracut (>= 0.40+1-1~) but it is not going to be installed or
                                               linux-initramfs-tool
 linux-image-3.2.0-4-686-pae : Depends: initramfs-tools (>= 0.99~) but it is not going to be installed or
                                        linux-initramfs-tool
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Dám-li apt-get -f install ve snaze vyřešit závislosti, dostanu zpět výše uvedené varování:

You are running a kernel (version 3.16.0-0.bpo.4-686-pae) and attempting to remove the same version.

This can make the system unbootable as it will remove /boot/vmlinuz-3.16.0-0.bpo.4-686-pae and all 
modules under the directory /lib/modules/3.16.0-0.bpo.4-686-pae. This can only be fixed with a copy 
of the kernel image and the corresponding modules.

It is highly recommended to abort the kernel removal unless you are prepared to fix the system
 after removal.

Abort kernel removal? 

YES / NO
kliknu na yes.

apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  crda dnsmasq-base irqbalance iw libjim0debian2 libnetfilter-conntrack3 libnuma1 modemmanager usb-modeswitch usb-modeswitch-data wireless-regdb
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  initramfs-tools
The following packages will be REMOVED:
  linux-image-3.16.0-0.bpo.4-686-pae
The following NEW packages will be installed:
  initramfs-tools
0 upgraded, 1 newly installed, 1 to remove and 10 not upgraded.
Need to get 0 B/91.3 kB of archives.
After this operation, 120 MB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 176566 files and directories currently installed.)
Removing linux-image-3.16.0-0.bpo.4-686-pae ...
Aborting removal of running kernel image.
dpkg: error processing linux-image-3.16.0-0.bpo.4-686-pae (--remove):
 subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-3.16.0-0.bpo.4-686-pae
E: Sub-process /usr/bin/dpkg returned an error code (1)
Jak z toho ven ? Potřebuju nějak čistě vrátit to, co jsem spáchal v kroku 5 při pokusu o migraci na 64bit. Předem díky za každkou radu.
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

26.6.2015 12:22 R
Rozbalit Rozbalit vše Re: Debian Wheezy - migrace 32bit na 64bit - krok zpět
Odpovědět | | Sbalit | Link | Blokovat | Admin
apt-get remove --purge linux-image-amd64:amd64 debootstrap dpkg --remove-architecture amd64 apt-get update
26.6.2015 12:23 R
Rozbalit Rozbalit vše Re: Debian Wheezy - migrace 32bit na 64bit - krok zpět
Kua, este raz:
apt-get remove --purge linux-image-amd64:amd64 debootstrap
dpkg --remove-architecture amd64
apt-get update
26.6.2015 12:29 Bill Gates
Rozbalit Rozbalit vše Re: Debian Wheezy - migrace 32bit na 64bit - krok zpět
apt-get remove --purge linux-image-amd64:amd64 debootstrap
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'linux-image-amd64:amd64' is not installed, so not removed
Package 'debootstrap' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-3.16.0-0.bpo.4-686-pae : Depends: initramfs-tools (>= 0.110~) but it is not going to be installed or
                                               dracut (>= 0.40+1-1~) but it is not going to be installed or
                                               linux-initramfs-tool
 linux-image-3.2.0-4-686-pae : Depends: initramfs-tools (>= 0.99~) but it is not going to be installed or
                                        linux-initramfs-tool
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

26.6.2015 12:35 manasekp | skóre: 29 | blog: manasekp | Brno
Rozbalit Rozbalit vše Re: Debian Wheezy - migrace 32bit na 64bit - krok zpět
apt-get -f install to nevyresit?

Balik se take da odstranit pomoci dpkg -r pokud apt-get blbne
BIOKOMP | Cas od casu se pokousim nekoho srazit k zemi abych se tam nevalel sam.
26.6.2015 12:59 Bill Gates
Rozbalit Rozbalit vše Re: Debian Wheezy - migrace 32bit na 64bit - krok zpět
apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  crda dnsmasq-base irqbalance iw libjim0debian2 libnetfilter-conntrack3 libnuma1 modemmanager usb-modeswitch usb-modeswitch-data wireless-regdb
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  initramfs-tools
The following packages will be REMOVED:
  linux-image-3.16.0-0.bpo.4-686-pae
The following NEW packages will be installed:
  initramfs-tools
0 upgraded, 1 newly installed, 1 to remove and 10 not upgraded.
Need to get 0 B/91.3 kB of archives.
After this operation, 120 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 176566 files and directories currently installed.)
Removing linux-image-3.16.0-0.bpo.4-686-pae ...
v upozorneni davam YES jak je doporuceno
Aborting removal of running kernel image.
dpkg: error processing linux-image-3.16.0-0.bpo.4-686-pae (--remove):
 subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-3.16.0-0.bpo.4-686-pae
E: Sub-process /usr/bin/dpkg returned an error code (1)

ono ho to chce pri reseni zavislosti proste vypakovat a to muze zpusobit pry ze nenabootuju.. a toho se bojim, takze jsem vlastne v rekurzi jakoby :(
26.6.2015 13:30 Bill Gates
Rozbalit Rozbalit vše Re: Debian Wheezy - migrace 32bit na 64bit - krok zpět
jeste dodam .. ja ho nechci odstranit, protoze to zpusobi nenabootovani ..

Napada me ho nechat odstranit, pak apt-get -f install, a pak ho znovu doinstalovat ale kua bojim bojim... Az budu mit na vedlejsim partition jessieho tak budu mit klid ale ted na to neni cas .. a potreboval bych dokopat instalaci balicku se soucasnym 32bitem opet k cinnosti a nejlepe znovu korektne nabootovat. Nenabootovat do 32bitu by bylo ted momentalne peklo, zasek, nebo nutnost hned instalovat jessieho, coz znamena kupu veci po instalaci donastavovat... Proto se tomu chci ted vyhnout a jedine co vidim jako schudne je dokopat instalace balicku na 32bitu zpet do cinnosti ..
26.6.2015 15:15 2X4B-523P | skóre: 38 | blog: Zelezo_vs_Debian
Rozbalit Rozbalit vše Re: Debian Wheezy - migrace 32bit na 64bit - krok zpět
Odpovědět | | Sbalit | Link | Blokovat | Admin
to jsem delal jeste pred multiarchem a bylo to hodne narocne...je to delsi doba, co jsi se mne na to ptal po telefonu, jestli se to da provest? lze to udelat, ale musi se vedet jak resit alespon zakladni problemy se zavislostmi a nedelat to kdyz ten system potrebuji pouzivat... ono na cely den je to pro zkuseneho spravce... je treba vedet zakladni veci, treba co dela toto:

echo nazevbaliku install | dpkg --set-selections

nekdy staci vratit zmenu zpet pomoci opetovne instalace baliku, i kdyz jeste nebyl odinstalovan, ale je oznacen k odstraneni... take spravce baliku nekdy dokaze podobne excesy vyresit nebo napovedet, treba aptitude...

ale netreba se rmoutit, staci pouzit zalohu vytvorenou v bode 4, cimz se opravi zmena v bodu 5...
26.6.2015 15:20 2X4B-523P | skóre: 38 | blog: Zelezo_vs_Debian
Rozbalit Rozbalit vše Re: Debian Wheezy - migrace 32bit na 64bit - krok zpět
totiz jestli se dobre pamatuji, tak nebylo kam zalohovat, takze zkusit:

apt-get install nazev_baliku_s_jadrem

kdyz to nepomuze vratit zmenu zpet, tak to zkustit v aptitude a kdyz ani to ne, tak:

echo nazev_baliku_s_jadrem install | dpkg --set-selections

mimochodem, co vsechno se odinstalovalo pri pokusu nainstalovat 64bit jadro?
26.6.2015 16:00 Bill Gates
Rozbalit Rozbalit vše Re: Debian Wheezy - migrace 32bit na 64bit - krok zpět
Vypis me konzole saha tesne az za vypis po provedeni
dpkg --add-architecture amd64 
apt-get update 
apt-get install linux-image-amd64:amd64 debootstrap
Takze uz to nevidim :(

netusil jsem ze apt-get install linux-image-amd64:amd64 debootstrap zpusobi tohle.

No a co vy rikate na to, kdzy to jadro proste necham odstranit, tedy nechat dokoncit
apt-get -f install
at se vyresi co se vyresit ma, pak
dpkg --remove-architecture amd64 
apt-get update 
apt-get upgrade
nebudu bootovat protoze bych nenabootoval a pak
apt-get install linux-image-3.16.0-0.bpo.4-686-pae
Je to uplna blbost? Nebo me napada .. ja nemam jen linux-image-3.16.0-0.bpo.4-686-pae ale i 3.2.0-4-686-pae. Tak kdyz selze boot po odstraneni 3.16.0-0.bpo.4-686-pae tak vlastne muzu bootnout pomoci 3.2.0-4-686-pae a pripadne 3.16.0-0.bpo.4-686-pae doinstalit pak .. je to tak? Nebo mi nic jineho nezbyde nez se pustit pres vikend stejne do instalace jessieho protoze 64bit proste potrebuju. Potrebuju virtualizovat Centos7 a ten uz v 32bitech je potiz, uz na to chlapi kaslou, i kdyz cetl jsem ze i 7micka je nekde zbastlena jako 32bit. A na 32bitovem hostu 64bitoveho guesta spustit bude asi problem (je - uz jsem to zkousel) ... nebo by to chtelo nejake 64bit knihovny ale ted s rozjebkanyma zavislostma .. to je uz fakt tak na jessieho.
30.6.2015 08:12 Bill Gates
Rozbalit Rozbalit vše Re: Debian Wheezy - migrace 32bit na 64bit - krok zpět
Odpovědět | | Sbalit | Link | Blokovat | Admin
Tak jsem teda odinstaloval jadro ktere to odinstalovat chtelo a nabootoval do druheho, ktere jsem mel nainstalovano.
apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  crda dnsmasq-base irqbalance iw libjim0debian2 libnetfilter-conntrack3 libnuma1 modemmanager usb-modeswitch usb-modeswitch-data wireless-regdb
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  initramfs-tools
The following packages will be REMOVED:
  linux-image-3.16.0-0.bpo.4-686-pae
The following NEW packages will be installed:
  initramfs-tools
0 upgraded, 1 newly installed, 1 to remove and 10 not upgraded.
Need to get 0 B/91.3 kB of archives.
After this operation, 120 MB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 176566 files and directories currently installed.)
Removing linux-image-3.16.0-0.bpo.4-686-pae ...
/etc/kernel/prerm.d/dkms:
dkms: removing: fglrx 14.501.1003 (3.16.0-0.bpo.4-686-pae) (i686)
dkms: removing: virtualbox 4.3.18 (3.16.0-0.bpo.4-686-pae) (i686)
/etc/kernel/postrm.d/zz-update-grub:
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.2.0-4-686-pae
Found initrd image: /boot/initrd.img-3.2.0-4-686-pae
done
The link /vmlinuz is a damaged link
Removing symbolic link vmlinuz 
You may need to re-run your boot loader
The link /initrd.img is a damaged link
Removing symbolic link initrd.img 
You may need to re-run your boot loader
Selecting previously unselected package initramfs-tools.
(Reading database ... 172599 files and directories currently installed.)
Unpacking initramfs-tools (from .../initramfs-tools_0.109.1_all.deb) ...
Processing triggers for man-db ...
Setting up initramfs-tools (0.109.1) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: /boot/initrd.img-3.2.0-4-686-pae has been altered.
update-initramfs: Cannot update. Override with -t option.

Zpet uz ho nedostanu. Takze mi nejede wifi a par dalsich veci.

apt-get install linux-image-3.16.0-0.bpo.4-686-pae
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:
 linux-image-3.16.0-0.bpo.4-686-pae : Depends: initramfs-tools (>= 0.110~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
To je humus tohle :(

Ma nekdo nejakou radu?
linux-image-3.16.0-0.bpo.4-686-pae : Depends: initramfs-tools (>= 0.110~) but it is not going to be installed
linux-image-3.16.0-0.bpo.4-686-pae zavisi na initramfs-tools (>= 0.110~) ale nebude nainstalovan.

A proc jako?
30.6.2015 09:07 Bill Gates
Rozbalit Rozbalit vše Re: Debian Wheezy - migrace 32bit na 64bit - krok zpět
apt-get install linux-image-3.16.0-0.bpo.4-686-pae -t wheezy-backports
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  initramfs-tools
Suggested packages:
  linux-doc-3.16 debian-kernel-handbook
The following NEW packages will be installed:
  linux-image-3.16.0-0.bpo.4-686-pae
The following packages will be upgraded:
  initramfs-tools
1 upgraded, 1 newly installed, 0 to remove and 166 not upgraded.
Need to get 33.5 MB of archives.
After this operation, 121 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://http.debian.net/debian/ wheezy-backports/main initramfs-tools all 0.115~bpo70+1 [92.6 kB]
Get:2 http://http.debian.net/debian/ wheezy-backports/main linux-image-3.16.0-0.bpo.4-686-pae i386 3.16.7-ckt11-1~bpo70+1 [33.4 MB]
Fetched 33.5 MB in 5s (5,613 kB/s)                             
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 172652 files and directories currently installed.)
Preparing to replace initramfs-tools 0.109.1 (using .../initramfs-tools_0.115~bpo70+1_all.deb) ...
Unpacking replacement initramfs-tools ...
Selecting previously unselected package linux-image-3.16.0-0.bpo.4-686-pae.
Unpacking linux-image-3.16.0-0.bpo.4-686-pae (from .../linux-image-3.16.0-0.bpo.4-686-pae_3.16.7-ckt11-1~bpo70+1_i386.deb) ...
Processing triggers for man-db ...
Setting up initramfs-tools (0.115~bpo70+1) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-3.16.0-0.bpo.4-686-pae (3.16.7-ckt11-1~bpo70+1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-3.16.0-0.bpo.4-686-pae
/etc/kernel/postinst.d/zz-update-grub:
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.16.0-0.bpo.4-686-pae
Found initrd image: /boot/initrd.img-3.16.0-0.bpo.4-686-pae
Found linux image: /boot/vmlinuz-3.2.0-4-686-pae
Found initrd image: /boot/initrd.img-3.2.0-4-686-pae
grub-probe: error: cannot find a GRUB drive for /dev/sdc1.  Check your device.map.
ls: reading directory /var/lib/os-prober/mount: Input/output error
ls: reading directory /var/lib/os-prober/mount: Input/output error
ls: reading directory /var/lib/os-prober/mount: Input/output error
ls: reading directory /var/lib/os-prober/mount: Input/output error
done
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.16.0-0.bpo.4-686-pae

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.