Jessie: Problem with initramfs-tools?  Topic is solved

Post questions regarding lower-level issues will here.

Re: Jessie: Problem with initramfs-tools?

Postby twerple » June 17th, 2015, 12:07 am

bulkley wrote:
To begin with, put a # in front of the deb-src lines. Those are for bringing down source packages and just slow down your average apt-gets.

When doing a major upgrade, such as Wheezy to Jessie, I always exit X and work from a console. I don't want anything running that I won't be using. For the major upgrade I hash # everything in my sources.list except
Code: Select all
deb http://http.us.debian.org/debian/ jessie main
. That's all. Then do
Code: Select all
apt-get update && apt-get upgrade
. Reboot. Does everything work? If so, do
Code: Select all
apt-get update && apt-get dist-upgrade
. Reboot and test again. Next, add contrib to the source line and do it all again. When it is all done you can un-block the second line in your sources.list.

A word about non-free. You only need it for proprietary blobs for drivers like Realtek. Once you have them you might as well block non-free. I do the same for special sources.

Now about your initramfs-tools problem. Go through the steps above. That was enough to clear a similar problem over at FDN. If it doesn't clear your problem I have another step but let's get the basics put together first.


Okay. I booted to single mode and did everything in order as suggested above, including the removal of useless stuff.
No joy to be found.
Each step it nagged me about two packages not completely installed or removed. I told it to go ahead anyway. Each time it kicked out the same error as in my first post, with one additional line about /usr/bin/dpkg throwing an error (1).
If there are any other suggestions, I'm all ears.

Thanks.
twerple
 
Posts: 23
Joined: October 28th, 2011, 2:26 am

Re: Jessie: Problem with initramfs-tools?

Postby bulkley » June 17th, 2015, 1:28 am

Each step it nagged me about two packages not completely installed or removed.


Which two packages?
bulkley
 
Posts: 34
Joined: June 13th, 2015, 8:01 pm

Re: Jessie: Problem with initramfs-tools?

Postby nodir » June 17th, 2015, 10:07 am

If in serious trouble aptitude may be better to fix the situation.

Also post the commands you use, not only the messages you get.
nodir
 
Posts: 307
Joined: June 16th, 2015, 10:10 pm

Re: Jessie: Problem with initramfs-tools?

Postby twerple » June 17th, 2015, 6:33 pm

bulkley wrote:
Each step it nagged me about two packages not completely installed or removed.


Which two packages?

initramfs-tools
linux-image-3.16.0-4-amd64
twerple
 
Posts: 23
Joined: October 28th, 2011, 2:26 am

Re: Jessie: Problem with initramfs-tools?

Postby bulkley » June 17th, 2015, 9:09 pm

twerple wrote:
bulkley wrote:
Each step it nagged me about two packages not completely installed or removed.


Which two packages?

initramfs-tools
linux-image-3.16.0-4-amd64


It looks like your version of initramfs-tools is the problem. The kernel is having problems because of initramfs-tools. (We can try another kernel, but that's after we get initramfs-tools loaded properly.) I assume that the initramfs-tools you are3 trying to install is version 0.120. Go here and review all the dependencies and compare them with what you have loaded. Synaptic is good for that if you like. Note that busybox is recommended.
bulkley
 
Posts: 34
Joined: June 13th, 2015, 8:01 pm

Re: Jessie: Problem with initramfs-tools?

Postby cynwulf » June 17th, 2015, 9:18 pm

Yes it's most likely that the version of initramfs-tools conflicts with the kernel version installed. To find out some more info:
Code: Select all
$ apt-cache policy initramfs-tools
cynwulf
 
Posts: 2548
Joined: April 26th, 2011, 2:46 pm

Re: Jessie: Problem with initramfs-tools?

Postby twerple » June 17th, 2015, 9:47 pm

cynwulf wrote:Yes it's most likely that the version of initramfs-tools conflicts with the kernel version installed. To find out some more info:
Code: Select all
$ apt-cache policy initramfs-tools

twerple~$ apt-cache policy initramfs-tools
initramfs-tools:
Installed: 0.120
Candidate: 0.120
Version table:
*** 0.120 0
500 http://http.us.debian.org/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
twerple
 
Posts: 23
Joined: October 28th, 2011, 2:26 am

Re: Jessie: Problem with initramfs-tools?

Postby twerple » June 17th, 2015, 9:50 pm

bulkley wrote:It looks like your version of initramfs-tools is the problem. The kernel is having problems because of initramfs-tools. (We can try another kernel, but that's after we get initramfs-tools loaded properly.) I assume that the initramfs-tools you are3 trying to install is version 0.120. Go here and review all the dependencies and compare them with what you have loaded. Synaptic is good for that if you like. Note that busybox is recommended.


Yes, version .120
All the dependencies appear to be installed, and at the right versions.
twerple
 
Posts: 23
Joined: October 28th, 2011, 2:26 am

Re: Jessie: Problem with initramfs-tools?

Postby bulkley » June 17th, 2015, 11:18 pm

Okay, let's try another kernel. I'm going to show you the easy way, easy to install and easy to remove. We'll use a Liquorix kernel which is just a tuned Debian kernel.

Add the following line to your sources.list.
Code: Select all
deb http://liquorix.net/debian/ sid main past


Do apt-get update. Then apt-cache search liquorix. Be conservative and choose the 3.18-6 kernel.

Code: Select all
apt-get install linux-image-3.18-6.dmz.1-liquorix-amd64


Reboot.

When you are done remember to # the Liquorix line in your sources.list.

You can get the Liquorix keyring if you want. apt-get install liquorix-keyring
bulkley
 
Posts: 34
Joined: June 13th, 2015, 8:01 pm

Re: Jessie: Problem with initramfs-tools?

Postby twerple » June 18th, 2015, 8:13 pm

bulkley wrote:Okay, let's try another kernel. I'm going to show you the easy way, easy to install and easy to remove. We'll use a Liquorix kernel which is just a tuned Debian kernel.

I only saw two on that list, 3.19-5 and 4.0 something. I chose 3.19-5. It did not go well:

Code: Select all
root[/home/twerple]#  apt-get install linux-image-3.19-5.dmz.1-liquorix-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  linux-doc-3.19
The following NEW packages will be installed:
  linux-image-3.19-5.dmz.1-liquorix-amd64
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 36.5 MB of archives.
After this operation, 171 MB of additional disk space will be used.
Get:1 http://liquorix.net/debian/ sid/past linux-image-3.19-5.dmz.1-liquorix-amd64 amd64 3.19-5 [36.5 MB]
Fetched 36.5 MB in 3min 47s (160 kB/s)
Preconfiguring packages ...
Selecting previously unselected package linux-image-3.19-5.dmz.1-liquorix-amd64.
(Reading database ... 180284 files and directories currently installed.)
Preparing to unpack .../linux-image-3.19-5.dmz.1-liquorix-amd64_3.19-5_amd64.deb ...
Unpacking linux-image-3.19-5.dmz.1-liquorix-amd64 (3.19-5) ...
Setting up initramfs-tools (0.120) ...
/var/lib/dpkg/info/initramfs-tools.postinst: 13: /var/lib/dpkg/info/initramfs-tools.postinst: update-initramfs: not found
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of linux-image-3.16.0-4-amd64:
 linux-image-3.16.0-4-amd64 depends on initramfs-tools (>= 0.110~) | linux-initramfs-tool; however:
  Package initramfs-tools is not configured yet.
  Package linux-initramfs-tool is not installed.
  Package initramfs-tools which provides linux-initramfs-tool is not configured yet.

dpkg: error processing package linux-image-3.16.0-4-amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-3.19-5.dmz.1-liquorix-amd64:
 linux-image-3.19-5.dmz.1-liquorix-amd64 depends on initramfs-tools | linux-initramfs-tool; however:
  Package initramfs-tools is not configured yet.
  Package linux-initramfs-tool is not installed.
  Package initramfs-tools which provides linux-initramfs-tool is not configured yet.

dpkg: error processing package linux-image-3.19-5.dmz.1-liquorix-amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 initramfs-tools
 linux-image-3.16.0-4-amd64
 linux-image-3.19-5.dmz.1-liquorix-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)


When I rebooted, the liquorix kernel was not even on the grub list. I booted back to 3.16 and ran update-grub. When I attempted to reboot again to the liquorix kernel, it blew up. I got a kernel panic message about "not syncing to VFS. Unable to mount root fs to block (0,0)" or something to that effect. I undid everything and now I'm back where I started from.
twerple
 
Posts: 23
Joined: October 28th, 2011, 2:26 am

PreviousNext

Return to System Issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x