Using update-initramfs with WUBI
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
|
#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
|
#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
|
#3 |
He has to boot using the old kernel (press esc fast after choosing ubuntu or edit c:\wubi\
Revision history for this message
|
#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
|
#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.
cp: cannot stat `/etc/initramfs
The folder overlay exsists, but it is empty.
Revision history for this message
|
#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://
Revision history for this message
|
#7 |
It looks like the lupin-target package was accidentally overwritten or removed. Try downloading and installing it from here: http://
Revision history for this message
|
#8 |
Trying to install lupin-target-
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
|
#9 |
Here are 3 screens I captured when trying to shut down after installing ntfs-3g:
http://
Here are 2 screens I captured when trying to boot to new kernel:
http://
Revision history for this message
|
#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
|
#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://
Revision history for this message
|
#12 |
seems like apt is having some sort of issue... try installing with dpkg -i:
cd /path/to/file
sudo dpkg -i ./lupin-
ps, I just changed the url to the file to http://
Revision history for this message
|
#13 |
typo on previous post, it should be:
sudo dpkg -i --force-all ./lupin-
Revision history for this message
|
#14 |
steven@
Password:
(Reading database ... 121033 files and directories currently installed.)
Preparing to replace lupin-target 1.0 (using ./lupin-
Leaving `diversion of /etc/initramfs-
Leaving `diversion of /etc/initramfs-
Leaving `diversion of /etc/initramfs-
Unpacking replacement lupin-target ...
Removing `diversion of /etc/initramfs-
dpkg-divert: rename involves overwriting `/etc/initramfs
different file `/etc/initramfs
dpkg: warning - old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
Removing `diversion of /etc/initramfs-
dpkg-divert: rename involves overwriting `/etc/initramfs
different file `/etc/initramfs
dpkg: error processing ./lupin-
Revision history for this message
|
#15 |
hmm seems like the update-
sudo cp /etc/initramfs-
sudo dpkg -i --force-all ./lupin-
Revision history for this message
|
#16 |
steven@ubuntu:~$ sudo cp /etc/initramfs-
steven@ubuntu:~$ sudo dpkg -i --force-all ./lupin-
dpkg: error processing ./lupin-
cannot access archive: No such file or directory
Errors were encountered while processing:
./lupin-
Revision history for this message
|
#17 |
Oops. I think I have to be on Desktop (that's where file is) Now I get:
steven@ubuntu:~$ cd Desktop
steven@
(Reading database ... 121033 files and directories currently installed.)
Preparing to replace lupin-target 1.0 (using ./lupin-
Leaving `diversion of /etc/initramfs-
Leaving `diversion of /etc/initramfs-
Leaving `diversion of /etc/initramfs-
Unpacking replacement lupin-target ...
Removing `diversion of /etc/initramfs-
dpkg-divert: rename involves overwriting `/etc/initramfs
different file `/etc/initramfs
dpkg: warning - old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
Removing `diversion of /etc/initramfs-
dpkg-divert: rename involves overwriting `/etc/initramfs
different file `/etc/initramfs
dpkg: error processing ./lupin-
subprocess new post-removal script returned error exit status 2
Leaving `diversion of /etc/initramfs-
Leaving `diversion of /etc/initramfs-
Leaving `diversion of /etc/initramfs-
Removing `diversion of /etc/initramfs-
dpkg-divert: rename involves overwriting `/etc/initramfs
different file `/etc/initramfs
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
./lupin-
Revision history for this message
|
#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
|
#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
|
#20 |
It's probably much easier to reinstall, download the new version (test3) from the website
Revision history for this message
|
#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-
cp: cannot stat `/etc/initramfs
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
|
#22 |
You can disregard that, you should be able to reboot using the new kernel
Revision history for this message
|
#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
|
#24 |
Thanks Agostino Russo, that solved my question.
Revision history for this message
|
#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