Er0r backtrack 5 r2
#1
Assalamulaikum...
kak ane udah upgrade backtrack 5 r2
dengan karnel:
Quote:root@bt:~# uname -a
Linux bt 3.2.6-custom #2 SMP Sat Mar 10 23:30:50 WIT 2012 i686 GNU/Linux

nah masalahnya pas ane jalankan apt-get upgrade:
malah keluar
Quote:root@bt:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
beef
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up initramfs-tools (0.92bubuntu78) ...
update-initramfs: deferring update (trigger activated)

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.39.4
Cannot find /lib/modules/2.6.39.4
update-initramfs: failed for /boot/initrd.img-2.6.39.4
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@bt:~#

kok karnel 2.6.39.4 masih ada kak....
padahal udah ane remove karnel 2.6.39.4

and pas ane jalankan prepare-kernel-sources di terminal keluar:

Quote:root@bt:~# prepare-kernel-sources
[*] cleaning up old sources
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting linux-source for regex 'linux-source*'
Note, selecting linux-source-3.2.6 for regex 'linux-source*'
Note, selecting linux-source-3.2.6-custom for regex 'linux-source*'
Note, selecting linux-source-2.6.38-rc7 for regex 'linux-source*'
Note, selecting linux-source-2.6.38-rc8 for regex 'linux-source*'
Note, selecting source-linux-source for regex 'linux-source*'
Note, selecting linux-source-2.6.38.8 for regex 'linux-source*'
Note, selecting linux-source-2.6.39.4 for regex 'linux-source*'
Note, selecting linux-source-2.6.30 for regex 'linux-source*'
Note, selecting linux-source-2.6.26 for regex 'linux-source*'
Note, selecting linux-source-2.6.31 for regex 'linux-source*'
Note, selecting linux-source-2.6.32 for regex 'linux-source*'
Note, selecting linux-source-2.6.38 for regex 'linux-source*'
Note, selecting linux-source-2.6 for regex 'linux-source*'
Note, selecting linux-source-3.2 for regex 'linux-source*'
Note, selecting linux-source-3.2.6 instead of linux-source-3.2
The following packages will be REMOVED:
linux-source* linux-source-3.2.6*
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 80.0MB disk space will be freed.
(Reading database ... 336622 files and directories currently installed.)
Removing linux-source ...
Removing linux-source-3.2.6 ...
Purging configuration files for linux-source-3.2.6 ...
Setting up initramfs-tools (0.92bubuntu78) ...
update-initramfs: deferring update (trigger activated)

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.39.4
Cannot find /lib/modules/2.6.39.4
update-initramfs: failed for /boot/initrd.img-2.6.39.4
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
[*] apt-getting linux-source...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
linux-source-3.2.6
Suggested packages:
xmlto libdb3-dev docbook-utils ksymoops
The following NEW packages will be installed:
linux-source linux-source-3.2.6
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0B/79.9MB of archives.
After this operation, 80.0MB of additional disk space will be used.
Selecting previously deselected package linux-source-3.2.6.
(Reading database ... 336608 files and directories currently installed.)
Unpacking linux-source-3.2.6 (from .../linux-source-3.2.6_3.2.6-10.00.Custom_all.deb) ...
Selecting previously deselected package linux-source.
Unpacking linux-source (from .../linux-source_2.0-bt1_all.deb) ...
Setting up initramfs-tools (0.92bubuntu78) ...
update-initramfs: deferring update (trigger activated)

Setting up linux-source-3.2.6 (3.2.6-10.00.Custom) ...
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
Examining /etc/kernel/src_postinst.d.

Setting up linux-source (2.0-bt1) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.39.4
Cannot find /lib/modules/2.6.39.4
update-initramfs: failed for /boot/initrd.img-2.6.39.4
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
[*] extracting sources, please wait
tar: linux-source-3.2.6-custom.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors
[*] doing stuff...
/usr/bin/prepare-kernel-sources: line 24: cd: /usr/src/linux: No such file or directory
make: *** No rule to make target `scripts'. Stop.
make: *** No rule to make target `prepare'. Stop.
cp: cannot stat `include/generated/*': No such file or directory
[*] tada!

itu fixnya gmna kang...?
sory bnyak tanya,,,,
baru pemula soalnya kak...TongueTongueTongueTongue

#2
remove kernel 2.6.39.4 udah semuanya blom?

coba dpkg -l |grep linux, perhatikan apa ada kernel 2.6.xx lagi ga?

klo masih ada di remove aja

setelah itu update-grub2 trus update-initramfs -u

reboot


#3
Quote:root@bt:~# dpkg -l |grep linux
ii edb-debugger 0.9.18-bt0 Evans Debugger, GUI debugger for linux x86 and x64.
ii libselinux1 2.0.89-4 SELinux runtime shared libraries
ii libv4l-0 0.6.4-1ubuntu1 Collection of video4linux support libraries
ii linux-doc-3.2.6 3.2.6-10.00.Custom Linux kernel specific documentation for version 3.2.6
ii linux-firmware 2.0-bt7 Linux Kernel Firmware
ii linux-headers-3.2.6 3.2.6-10.00.Custom Header files related to Linux kernel, specifically,
ii linux-headers-3.2.6-custom 3.2.6-custom-10.00.Custom Header files related to Linux kernel, specifically,
ii linux-image-3.2.6 3.2.6-10.00.Custom Linux kernel binary image for version 3.2.6
ii linux-image-3.2.6-custom 3.2.6-custom-10.00.Custom Linux kernel binary image for version 3.2.6-custom
ii linux-libc-dev 2.6.32-29.58 Linux Kernel Headers for development
ii linux-sound-base 1.0.22.1+dfsg-0ubuntu3 base package for ALSA and OSS sound systems
ii linux-source 2.0-bt1 BackTrack Linux Kernel Source Virtual Package
ii linux-source-3.2.6 3.2.6-10.00.Custom Linux kernel source for version 3.2.6
ii syslinux 2:3.63+dfsg-2ubuntu3 Bootloader for Linux/i386 using MS-DOS floppies
ii util-linux 2.17.2-0ubuntu1.10.04.2 Miscellaneous system utilities

Quote:root@bt:~# update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.6-custom
Found initrd image: /boot/initrd.img-3.2.6-custom
Found linux image: /boot/vmlinuz-3.2.6
Found initrd image: /boot/initrd.img-3.2.6
Found memtest86+ image: /boot/memtest86+.bin
done
root@bt:~#


Quote:root@bt:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
beef
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up initramfs-tools (0.92bubuntu78) ...
update-initramfs: deferring update (trigger activated)

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.39.4
Cannot find /lib/modules/2.6.39.4
update-initramfs: failed for /boot/initrd.img-2.6.39.4
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@bt:~#

masih sama kak....HuhHuhHuhHuh

#4
dari hasil update-grub tampaknya udah tidak ada masalah bro
Quote:root@bt:~# update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.6-custom
Found initrd image: /boot/initrd.img-3.2.6-custom
Found linux image: /boot/vmlinuz-3.2.6
Found initrd image: /boot/initrd.img-3.2.6
Found memtest86+ image: /boot/memtest86+.bin
done

tampaknya tinggal jalanin update initramfs:
Code:
update-initramfs -u

coba jalanin trus paste disini hasilnya

#5
update-initramfs -u
Quote:root@bt:~# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.39.4
Cannot find /lib/modules/2.6.39.4
update-initramfs: failed for /boot/initrd.img-2.6.39.4

padahal ane make kernel
Quote:root@bt:~# uname -a
Linux bt 3.2.6-custom #2 SMP Thu Mar 15 10:48:15 EDT 2012 i686 GNU/Linux


Quote:root@bt:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
beef
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up initramfs-tools (0.92bubuntu78) ...
update-initramfs: deferring update (trigger activated)

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.39.4
Cannot find /lib/modules/2.6.39.4
update-initramfs: failed for /boot/initrd.img-2.6.39.4
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

masih eror kak....
tolongin dunk,, dah hampir 1 blan stngah ane cari2 belum fix...HuhHuhHuh

#6
coba update-initramfs -b /lib/modules/3.2.6xxx (3.2.6 sesuaikan dengan nama kernel yg ada di folder tsb)

klo ga bisa coba dibuat aja initramfs kernel barunya:
Code:
update-initramfs -u -k 3.2.6

atau

Code:
update-initramfs -c -k 3.2.6

#7
klo ga bisa coba dibuat aja initramfs kernel barunya:
Code:
update-initramfs -u -k 3.2.6

atau

Code:
update-initramfs -c -k 3.2.6


Quote:root@bt:~# update-initramfs -c -k 3.2.6
update-initramfs: Generating /boot/initrd.img-3.2.6
root@bt:~#

Quote:root@bt:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up initramfs-tools (0.92bubuntu78) ...
update-initramfs: deferring update (trigger activated)

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.39.4
Cannot find /lib/modules/2.6.39.4
update-initramfs: failed for /boot/initrd.img-2.6.39.4
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returne

masih engak bisa kak....






Users browsing this thread: 1 Guest(s)