Using update-initramfs with WUBI

Asked by Cesare Tirabassi

Last night i installed Ubundu using Wubi installer,infact i installed it from the dowladed copy and i am using Dell laptop inspiron 1525 core duo. However, now I can't open Ubuntu. When I try I get the following:
BusyBox v1.1.3 (Debrian 1:1.1.3-5 Ubuntu12) Built-in shell (ash)
Enter 'help' for a list of built-in commands
(initramfs)_

Please advise with easy steps because i am very new to linux

Question information

Language:
English Edit question
Status:
Solved
For:
Wubi Edit question
Assignee:
No assignee Edit question
Solved by:
Agostino Russo
Solved:
Last query:
Last reply:
Revision history for this message
Agostino Russo (ago) said :
#1

He should have ntfs-3g installed. If he did uninstall it, he will not be able to upgrade the kernel

Revision history for this message
Cesare Tirabassi (norsetto) said :
#2

Thanks Agostino, you are faster than Jigen :)

Apparently he upgraded succesfully, but then he is not able to boot anymore.
He is stopping with this error:

Loading Please Wait....
[43.675877] ATA1.00: SET of native returned 0, expected 195371568
[43.691836] ATA1.00: SET of native returned 0, expected 195371568

Revision history for this message
Agostino Russo (ago) said :
#3

He has to boot using the old kernel (press esc fast after choosing ubuntu or edit c:\wubi\boot\grub\menu.lst), then install nfts-3g, then rebuild the initrd (update-initramfs)

Revision history for this message
stevelasvegas (stevelasvegas) said :
#4

Yes, I did un-install ntfs-3g because when it was installed, and I shut down or restarted, the shut down process halted and stalled with some other "not found" message. I will re-install ntfs-3g and rebuld the initrd (update-intramfs) with the command Cesare gave me and then try booting with the new kernel. The new kernel is in the grub boot menu when I press esc during booting. Do I need to re-install the new kernel again with ntfs-3g before booting, or do anything else. I'm not sure how to re-install the kernel. I only initial installed the kernel because it came in automatically in an update. If I get the same shut down problem I will post it.

Revision history for this message
stevelasvegas (stevelasvegas) said :
#5

ntfs-3g is istalled. When I sudo update-initramfs -u -k 2.6.20-16-generic, this is now the output:
steven@ubuntu:~$ sudo update-initramfs -u -k 2.6.20-16-generic
Password:
update-initramfs: Generating /boot/initrd.img-2.6.20-16-generic
cp: cannot stat `/etc/initramfs-tools/overlay/*': No such file or directory

The folder overlay exsists, but it is empty.

Revision history for this message
stevelasvegas (stevelasvegas) said :
#6

Also, I booted using the new kernel and did a ctrl+alt+f1 to see the screen as it crashes. I took a .jpg w/my camera that lists the messages on the screen. I don't know how to post an image here so you can view it here --> http://www.flickr.com/photos/7610778@N03/520973259/

Revision history for this message
Geza Kovacs (gezakovacs) said :
#7

It looks like the lupin-target package was accidentally overwritten or removed. Try downloading and installing it from here: http://cutlersoftware.com/ubuntusetup/wubi/downloads/updates/lupin-deb.html and also make sure ntfs-3g is installed, then try the update-initramfs again

Revision history for this message
stevelasvegas (stevelasvegas) said :
#8

Trying to install lupin-target-7.04-test3-1.deb using package installer says:
Could not open .... the package might be corrupted or you are not allowed to open the file. Check permissions of the file.

Revision history for this message
stevelasvegas (stevelasvegas) said :
#9

Here are 3 screens I captured when trying to shut down after installing ntfs-3g:
http://www.flickr.com/photos/7610778@N03/sets/72157600288750237/

Here are 2 screens I captured when trying to boot to new kernel:
http://www.flickr.com/photos/7610778@N03/sets/72157600289537196/

Revision history for this message
stevelasvegas (stevelasvegas) said :
#10

Now the update manager is saying:
'E:The package lupin-target needs to be reinstalled, but I can't find an archive for it.'

Revision history for this message
stevelasvegas (stevelasvegas) said :
#11

Are you guys tired of me?
I think I'm going backwards. Update manger reports:
E: The package lupin-target needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.

W: Duplicate sources.list entry http://us.archive.ubuntu.com feisty/main Packages (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_feisty_main_binary-i386_Packages)

Revision history for this message
Geza Kovacs (gezakovacs) said :
#12

seems like apt is having some sort of issue... try installing with dpkg -i:

cd /path/to/file
sudo dpkg -i ./lupin-target-test3.deb

ps, I just changed the url to the file to http://cutlersoftware.com/ubuntusetup/wubi/downloads/updates/lupindeb.html

Revision history for this message
Geza Kovacs (gezakovacs) said :
#13

typo on previous post, it should be:

sudo dpkg -i --force-all ./lupin-target-7.04-test3.deb

Revision history for this message
stevelasvegas (stevelasvegas) said :
#14

steven@ubuntu:~/Desktop$ sudo dpkg -i --force-all ./lupin-target-7.04-test3.deb
Password:
(Reading database ... 121033 files and directories currently installed.)
Preparing to replace lupin-target 1.0 (using ./lupin-target-7.04-test3.deb) ...
Leaving `diversion of /etc/initramfs-tools/update-initramfs.conf to /etc/initramfs-tools/update-initramfs.conf.orig by lupin-target'
Leaving `diversion of /etc/initramfs-tools/initramfs.conf to /etc/initramfs-tools/initramfs.conf.orig by lupin-target'
Leaving `diversion of /etc/initramfs-tools/modules to /etc/initramfs-tools/modules.orig by lupin-target'
Unpacking replacement lupin-target ...
Removing `diversion of /etc/initramfs-tools/update-initramfs.conf to /etc/initramfs-tools/update-initramfs.conf.orig by lupin-target'
dpkg-divert: rename involves overwriting `/etc/initramfs-tools/update-initramfs.conf' with
  different file `/etc/initramfs-tools/update-initramfs.conf.orig', not allowed
dpkg: warning - old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
Removing `diversion of /etc/initramfs-tools/update-initramfs.conf to /etc/initramfs-tools/update-initramfs.conf.orig by lupin-target'
dpkg-divert: rename involves overwriting `/etc/initramfs-tools/update-initramfs.conf' with
  different file `/etc/initramfs-tools/update-initramfs.conf.orig', not allowed
dpkg: error processing ./lupin-target-7.04-test3.deb (--install):

Revision history for this message
Geza Kovacs (gezakovacs) said :
#15

hmm seems like the update-initramfs.conf has been tweaked outside of dpkg for some reason, try this to overwrite the customized version and use the standard one:

sudo cp /etc/initramfs-tools/update-initramfs.conf.orig /etc/initramfs-tools/update-initramfs.conf
sudo dpkg -i --force-all ./lupin-target-7.04-test3.deb

Revision history for this message
stevelasvegas (stevelasvegas) said :
#16

steven@ubuntu:~$ sudo cp /etc/initramfs-tools/update-initramfs.conf.orig /etc/initramfs-tools/update-initramfs.conf
steven@ubuntu:~$ sudo dpkg -i --force-all ./lupin-target-7.04-test3.deb
dpkg: error processing ./lupin-target-7.04-test3.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 ./lupin-target-7.04-test3.deb

Revision history for this message
stevelasvegas (stevelasvegas) said :
#17

Oops. I think I have to be on Desktop (that's where file is) Now I get:
steven@ubuntu:~$ cd Desktop
steven@ubuntu:~/Desktop$ sudo dpkg -i --force-all ./lupin-target-7.04-test3.deb
(Reading database ... 121033 files and directories currently installed.)
Preparing to replace lupin-target 1.0 (using ./lupin-target-7.04-test3.deb) ...
Leaving `diversion of /etc/initramfs-tools/update-initramfs.conf to /etc/initramfs-tools/update-initramfs.conf.orig by lupin-target'
Leaving `diversion of /etc/initramfs-tools/initramfs.conf to /etc/initramfs-tools/initramfs.conf.orig by lupin-target'
Leaving `diversion of /etc/initramfs-tools/modules to /etc/initramfs-tools/modules.orig by lupin-target'
Unpacking replacement lupin-target ...
Removing `diversion of /etc/initramfs-tools/update-initramfs.conf to /etc/initramfs-tools/update-initramfs.conf.orig by lupin-target'
dpkg-divert: rename involves overwriting `/etc/initramfs-tools/update-initramfs.conf' with
  different file `/etc/initramfs-tools/update-initramfs.conf.orig', not allowed
dpkg: warning - old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
Removing `diversion of /etc/initramfs-tools/update-initramfs.conf to /etc/initramfs-tools/update-initramfs.conf.orig by lupin-target'
dpkg-divert: rename involves overwriting `/etc/initramfs-tools/update-initramfs.conf' with
  different file `/etc/initramfs-tools/update-initramfs.conf.orig', not allowed
dpkg: error processing ./lupin-target-7.04-test3.deb (--install):
 subprocess new post-removal script returned error exit status 2
Leaving `diversion of /etc/initramfs-tools/update-initramfs.conf to /etc/initramfs-tools/update-initramfs.conf.orig by lupin-target'
Leaving `diversion of /etc/initramfs-tools/initramfs.conf to /etc/initramfs-tools/initramfs.conf.orig by lupin-target'
Leaving `diversion of /etc/initramfs-tools/modules to /etc/initramfs-tools/modules.orig by lupin-target'
Removing `diversion of /etc/initramfs-tools/update-initramfs.conf to /etc/initramfs-tools/update-initramfs.conf.orig by lupin-target'
dpkg-divert: rename involves overwriting `/etc/initramfs-tools/update-initramfs.conf' with
  different file `/etc/initramfs-tools/update-initramfs.conf.orig', not allowed
dpkg: error while cleaning up:
 subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
 ./lupin-target-7.04-test3.deb

Revision history for this message
stevelasvegas (stevelasvegas) said :
#18

Should I reinstall and start over? Maybe I've done something before that is causing the issue. I'm very familiar with XP but I am drawn to Linux (you know all the reasons) and I thought using WUBI would allow me to get familiar without putting my XP at risk. I'm used to these types of problems with MS stuff, so I image my drive often knowing that sooner or later something will go wrong with windows and I'll have to go back. Is that the same thinking I should use with Ubuntu or is there a better way to get back to where I was in Linux other than having to image the whole drive? With Wubi, I think I can just copy the WUBI folder or even just a portion of it to go back to a previous state.
What do you think?

Revision history for this message
stevelasvegas (stevelasvegas) said :
#19

Lookie here:
Linux ubuntu 2.6.20-16-generic #2 SMP Wed May 23 01:46:23 UTC 2007 i686 GNU/Linux
How did I fix it? How else; a reinstall. I must have messed something up sometime.
I really appreciate all of help and the time that you all spent working with me.
I will learn from this, but, this is the hard way. I'm going to have to to some book-learning before I start typing commands.
Thanks again for all the help.
It's people like you that make the Linux community a great place to participate and learn.

Revision history for this message
Agostino Russo (ago) said :
#20

It's probably much easier to reinstall, download the new version (test3) from the website

Revision history for this message
stevelasvegas (stevelasvegas) said :
#21

OK, 1 more time.
I've done a clean install, again, of Ubuntu using Wubi.
I did an update.
Everything went fine during the update (I looked at the detail text that was generated in update manager), except this message:
update-initramfs: Generating /boot/initrd-img-2.6.20-16-generic
cp: cannot stat `/etc/initramfs-tools/overlay/*': No such file or directory
Same old thing. I don't know if that is important, but, if it is I don't want to build on top of a problem installation
Any ideas?
Thanks

Revision history for this message
Best Agostino Russo (ago) said :
#22

You can disregard that, you should be able to reboot using the new kernel

Revision history for this message
stevelasvegas (stevelasvegas) said :
#23

Yes I am able to boot with the new kernel after doing a reinstall. If the remaining error is no problem, then I'm set.
Thanks for all the help.

Revision history for this message
Cesare Tirabassi (norsetto) said :
#24

Thanks Agostino Russo, that solved my question.

Revision history for this message
Jams (kpjams) said :
#25

Last night i installed Ubundu using Wubi installer,infact i installed it from the dowladed copy and i am using Dell laptop inspiron 1525 core duo. However, now I can't open Ubuntu. When I try I get the following:
BusyBox v1.1.3 (Debrian 1:1.1.3-5 Ubuntu12) Built-in shell (ash)
Enter 'help' for a list of built-in commands
(initramfs)_

Please advise with easy steps because i am very new to linux