LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Squeeze to Wheezy Install Froze (https://www.linuxquestions.org/questions/debian-26/squeeze-to-wheezy-install-froze-4175460972/)

Soapm 05-07-2013 01:08 AM

Squeeze to Wheezy Install Froze
 
She was humming along for a couple of hours then I noticed the emulator sat here for a long time.

Code:

root@lenny:/# dpkg --configure linux-headers-3.2.0-4-686-pae
Setting up linux-headers-3.2.0-4-686-pae (3.2.41-2) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-4-686-pae

I can delete the lock file "rm /var/lib/dpkg/lock"
then run "dpkg --configure -a"

And this is as much as I get out of her. She freezes configuring these headers every time.

This is from my dpkg.log. As you can see I have a lot of half configured packages but this header file seems to be stopping the show. If I can get it out of the way I think I can do some manual installs to get my system running.

Quote:

2013-05-06 23:08:07 status unpacked xpdf:i386 3.03-10
2013-05-06 23:08:07 status unpacked xpdf:i386 3.03-10
2013-05-06 23:08:07 status half-configured xpdf:i386 3.03-10
2013-05-06 23:08:07 status installed xpdf:i386 3.03-10
2013-05-06 23:08:07 configure lsb-release:all 4.1+Debian8 <none>
2013-05-06 23:08:07 status unpacked lsb-release:all 4.1+Debian8
2013-05-06 23:08:07 status half-configured lsb-release:all 4.1+Debian
2013-05-06 23:08:08 status installed lsb-release:all 4.1+Debian8
2013-05-06 23:08:08 configure ruby-uconv:i386 0.5.3-2 <none>
2013-05-06 23:08:08 status unpacked ruby-uconv:i386 0.5.3-2
2013-05-06 23:08:08 status half-configured ruby-uconv:i386 0.5.3-2
2013-05-06 23:08:08 status installed ruby-uconv:i386 0.5.3-2
2013-05-06 23:08:08 configure xfsprogs:i386 3.1.7+b1 <none>
2013-05-06 23:08:08 status unpacked xfsprogs:i386 3.1.7+b1
2013-05-06 23:08:08 status half-configured xfsprogs:i386 3.1.7+b1
2013-05-06 23:08:08 status installed xfsprogs:i386 3.1.7+b1
2013-05-06 23:08:08 configure aacplusenc:i386 0.17.5-dmo1 <none>
2013-05-06 23:08:08 status unpacked aacplusenc:i386 0.17.5-dmo1
2013-05-06 23:08:08 status half-configured aacplusenc:i386 0.17.5-dmo
2013-05-06 23:08:08 status installed aacplusenc:i386 0.17.5-dmo1
2013-05-06 23:08:08 configure xmltoman:all 0.4-3 <none>
2013-05-06 23:08:08 status unpacked xmltoman:all 0.4
2013-05-06 23:22:59 status half-configured menu:i386 2.1.46
2013-05-06 23:23:00 status installed menu:i386 2.1.46
2013-05-06 23:23:00 configure tk8.4:i386 8.4.19-5 <none>
2013-05-06 23:23:00 status unpacked tk8.4:i386 8.4.19-5
2013-05-06 23:23:00 status half-configured tk8.4:i386 8.4.19-5
2013-05-06 23:23:00 status installed tk8.4:i386 8.4.19-5
2013-05-06 23:23:00 status triggers-pending menu:i386 2.1.46
2013-05-06 23:23:00 status triggers-awaited menu:i386 2.1.46
2013-05-06 23:23:00 configure pppconfig:all 2.3.18+nmu4 <none>
2013-05-06 23:23:00 status unpacked pppconfig:all 2.3.18+nmu4
2013-05-06 23:23:00 status unpacked pppconfig:all 2.3.18+nmu4
2013-05-06 23:23:00 status unpacked pppconfig:all 2.3.18+nmu4
2013-05-06 23:23:00 status unpacked pppconfig:all 2.3.18+nmu4
2013-05-06 23:23:00 status half-configured pppconfig:all 2.3.18+nmu4
2013-05-06 23:23:01 status installed pppconfig:all 2.3.18+nmu4
2013-05-06 23:23:01 configure linux-headers-3.2.0-4-686-pae:i386 3.2.
2013-05-06 23:23:01 status half-configured linux-headers-3.2.0-4-686-

2013-05-06 23:47:31 startup packages configure
2013-05-06 23:47:31 configure linux-headers-3.2.0-4-686-pae:i386 3.2.
2013-05-06 23:47:31 status half-configured linux-headers-3.2.0-4-686-

Any idea how to stop dpkg --configure -a from trying to configure this package?

jdkaye 05-07-2013 01:24 AM

Can you tell us what command you used to do the upgrade? The one that had your system "humming along for a couple of hours". In your post you only describe a dpkg command.
jdk

Soapm 05-07-2013 01:38 AM

Sorry, yes, I was following the instructions here http://www.debian.org/releases/stabl...en.html#backup which had these steps

mount -o remount,rw /
script -t 2>~/upgrade-wheezystep.time -a ~/upgrade-wheezystep.script
apt-get update
apt-get -o APT::Get::Trivial-Only=true dist-upgrade
apt-get dist-upgrade

Now, I found I could hit cntrl +c immediately after dpkg --configure -a and the process seems to proceed with these errors. From what I can see I have a version mismatch which is causing the headers not to install but I have no idea how to remedy this???

Quote:

root@lenny:~# dpkg --configure -a
Setting up linux-headers-3.2.0-4-686-pae (3.2.41-2) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-4-686-pae
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-3.2.0-4-686-pae.postinst line 12.
dpkg: error processing linux-headers-3.2.0-4-686-pae (--configure):
subprocess installed post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of linux-headers-686-pae:
linux-headers-686-pae depends on linux-headers-3.2.0-4-686-pae; however:
Package linux-headers-3.2.0-4-686-pae is not configured yet.

dpkg: error processing linux-headers-686-pae (--configure):
dependency problems - leaving unconfigured
error: db5 error(-30969) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db5 - (-30969)
error: cannot open Packages database in /root/.rpmdb
error: db5 error(-30969) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages database in /root/.rpmdb
error: db5 error(-30969) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db5 - (-30969)
error: cannot open Packages database in /root/.rpmdb
error: db5 error(-30969) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages database in /root/.rpmdb
error: db5 error(-30969) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db5 - (-30969)
error: cannot open Packages database in /root/.rpmdb
error: db5 error(-30969) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages database in /root/.rpmdb
Errors were encountered while processing:
linux-headers-3.2.0-4-686-pae
linux-headers-686-pae
root@lenny:~# error: db5 error(-30969) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db5 - (-30969)
error: cannot open Packages database in /root/.rpmdb
error: db5 error(-30969) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages database in /root/.rpmdb
The other problem is it won't let me install anything else since the headers package is partially installed. So I can't install what the new version of whatever it's looking for.

EDDY1 05-07-2013 02:12 AM

post output of
Quote:

cat /etc/apt/sources.list

jdkaye 05-07-2013 02:15 AM

You've lost me there. I am sooooooooo happy I use testing.
Code:

sudo aptitude update
sudo aptitude safe-upgrade

That's all there is to it.
jdk

EDDY1 05-07-2013 02:20 AM

Are you mixng rpm's with .debs?
Quote:

error: cannot open Packages database in /root/.rpmdb

Soapm 05-07-2013 04:59 AM

Quote:

Originally Posted by EDDY1 (Post 4946393)
Are you mixng rpm's with .debs?

Not intentionally, this has been a complete nightmare.

This is my source list.

Code:

# deb cdrom:[Debian GNU/Linux 6.0.3 _Squeeze_ - Official i386 NETINST Binary-1 20111008-19:55]/ squeeze main

deb http://ftp.us.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.us.debian.org/debian wheezy main contrib non-free

deb http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

#Third Parties Repos

#Debian Multimedia
deb http://www.las.ic.unicamp.br/pub/debian-multimedia/ wheezy main

#deb-multimedia.org
deb http://www.deb-multimedia.org wheezy main non-free
deb-src http://www.deb-multimedia.org wheezy main non-free

deb http://ftp.us.debian.org/debian wheezy-proposed-updates contrib non-free main

# Backports repository

# deb http://backports.debian.org/debian-backports/ squeeze-backports main
# deb http://www.deb-multimedia.org squeeze-backports main

deb http://shell.ninthgate.se/packages/debian wheezy main

I figured out how to clear the error. I deleted the package, kill all the associated PID's then can run dpkg --configure -a to clear the error. I managed to get the headers to install by doing a build-dep. It install something I never heard of but the headers installed.

The problem is I can't upgrade the kernel no matter what I try. Both linux-image-3.2.0-4-686-pae and linux-image-686-pae freeze trying to generate /boot/vmlinuz-3.2.0-4-686-pae. The file is there but since it freezes generating that file it never makes the initrd.img nor does it update grub. I've been at this over 12 hours and am convinced the linux gods hate me because I can never do anything and have it work "out of the box". I always end up frustrated, stressed and googling until my fingers hurt.

I'm supposed to be at work in 2 hours so I guess I should try and get 1 hour sleep. Man is this Linux tough to get working. It's great once you get it going but a nightmare to install/configure etc...

Soapm 05-07-2013 11:37 AM

I went to install all the dependencies one by one and I think I found the problem. Looks like initramfs-tools isn't installing correctly but I have no idea what to do about the missing destination file.

Quote:

root@lenny:/# dpkg --configure -a
Setting up initramfs-tools (0.109.1) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.32-5-686
cp: missing destination file operand after `/tmp/tmp.rHMvTAAofY/sbin/'
Try `cp --help' for more information.
------------------
Error has occured!
update-initramfs: failed for /boot/initrd.img-2.6.32-5-686 with 1.
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initramfs-tools

Soapm 05-07-2013 12:36 PM

I decided to hook a monitor and keyboard to the box and reinstall from scratch. This update went very badly but I followed the instructions to the letter. My only thought is the backports must have put an unknown in the mix???

Soapm 05-18-2013 02:41 PM

This is crazy, I've done two fresh wheezy installs from scratch and I consistently end up with this same error. One was a netinstall and the other was from DVD.

I can clear the error by killing the PID for dpkg "ps -A | grep dpkg" then repeating the process and killing the PID for apt.

I then go into /var/lib/dpkg/status, searching for half-configured I change the status on that package (linux-headers-3.2.0-4-686-pae) from "install ok half-configured" to "install ok installed"

Then I clear the locked files:

Quote:

rm /var/lib/dpkg/lock
rm /var/lib/apt/lists/lock
And was then able to get "dpkg --configure -a" to run without error or locking up. I know, that's a lot and this happened anytime a package tried to create a module of some sort so it has been a pain.

That was until now, today I get a message in webmin saying I had 10 pages to upgrade. The list is below. Since allowing this update, I repeat my lengthy process but it doesn't clear the error. After repeating my usual process this is what I get running "apt-get install -f"

Code:

root@lenny:~# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-headers-3.2.0-4-686-pae (3.2.41-2+deb7u2) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-4-686-pae

I would hate to do a complete reinstall just to end up with the same problem. Could it be this header package, the one for i386 is corrupt or has some kind of problem? This is just so strange that I get this error consistently during the update and after two fresh installs. There has to be a common denominator making this happen but at this point I'm stuck not being able ti install or remove any packages after the upgrade that happened today.

Quote:

tasksel-data
tasksel
linux-image-3.2.0-4-686-pae
linux-headers-3.2.0-4-686-pae
linux-headers-3.2.0-4-common
linux-source-3.2
task-english
task-file-server
task-ssh-server
x11-common
This is a headless debian service mainly used for video file storage.

Soapm 05-18-2013 05:26 PM

I found this command and got the package to uninstall dpkg --force all --remove linux-headers-3.2.0-4-686-pae

However, I get the same error when I install it again. This really sucks, there must be something wrong with that package or I have a dependency problem. I can't figure it out either way...

Soapm 05-18-2013 06:04 PM

All the header files give me this same error. There are the files that will not install.

linux-headers-3.2.0-4-common linux-headers-686-pae linux-headers-3.2.0-4-686-pae

widget 05-18-2013 06:30 PM

Try this command with no additions as root;
[code]
apt-get -f install
[code]
Post all output if it fails.

Soapm 05-18-2013 08:25 PM

Quote:

Originally Posted by widget (Post 4953995)
Try this command with no additions as root;
[code]
apt-get -f install
[code]
Post all output if it fails.

Thanks, this is always where it fails. run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-4-686-pae

It gets to this line and just stops. The best I can tell it has something to do with DKMS file in /etc/kernel/header_postinst.d/dkms

Here are lines 8 thru 15 of the DKMS file

Code:

_get_kernel_dir() {
    KVER=$1
    case ${uname_s} in
      Linux)          DIR="/lib/modules/$KVER/build" ;;
      GNU/kFreeBSD)  DIR="/usr/src/kfreebsd-headers-$KVER/sys" ;;
    esac
    echo $DIR
}

Here is the output of apt-get -f install. Because I remote in via SSH I have to close my local emulator, log back in then repeat the steps I mentioned above to clear the error.

Code:

root@lenny:/etc/kernel/header_postinst.d# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  linux-headers-3.2.0-4-common
The following NEW packages will be installed:
  linux-headers-3.2.0-4-common
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0 B/3,552 kB of archives.
After this operation, 18.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Selecting previously unselected package linux-headers-3.2.0-4-common.
(Reading database ... 137790 files and directories currently installed.)
Unpacking linux-headers-3.2.0-4-common (from .../linux-headers-3.2.0-4-common_3.2.41-2+deb7u2_i386.deb) ...
Setting up linux-headers-3.2.0-4-common (3.2.41-2+deb7u2) ...
Setting up linux-headers-3.2.0-4-686-pae (3.2.41-2+deb7u2) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-4-686-pae


Hungry ghost 05-18-2013 11:05 PM

This is weird. The only thing I can think of is to purge the linux headers packages with the following command:

Code:

apt-get purge linux-headers-3.2.0-4-common linux-headers-686-pae linux-headers-3.2.0-4-686-pae
Then attempt to reinstall them one by one enabling the debug option in dpkg:

Code:

dpkg --debug=2 -i /var/cache/apt/archives/linux-headers-3.2.0-4-common_3.2.41-2+deb7u2_i386.deb
Hope it gives us some useful information about why it is failing.

BTW, could you copy here the following file?: /var/lib/dpkg/info/linux-headers-3.2.0-4-686-pae.postinst. Just curious, since one of the errors you had said it failed to process line 12 of that script.

edit: I almost forgot, what is the output of uname -a on that machine?


All times are GMT -5. The time now is 06:48 AM.