Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Bonjour

I have tried to upgrade from ubuntu 10.04 to 10.10, I've gotten an error:

E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages

I executed command

apt-get purge dpkg

after this system is not booting but giving following message in the biginning

init: hwclock main process (373) terminated with status 2
.:1: Can't open /etc/default/rcS
init:mountall main process(376) terminated with status 2
Filesystem check or mount failed
A maintenenace shell will now be started.
CONTROL-D will termiante this shell and continue booting after re-typing 
filesystems. Any further errors will be ignored
root@ahmad-laptop:~#_

I hope you will have solution, please

Regards

share|improve this question
add comment

2 Answers 2

  1. I advise you to upgrade to 12.04.1 from live cd and backup all your data

  2. you can recover your broken installation by going into grub rescue and fixing packages sudo apt-get install -f

  3. ok try to unmount the disk umount /dev/sda* then do fsck again

  4. boot from the livecd and try to fsck from there

  5. install kile sudo apt-get install kile

  6. install Latex sudo apt-get install texlive then sudo apt-get install texlive-full then sudo apt-get install gedit-latex-plugin

share|improve this answer
    
The command sudo apt-get install -f returns following output: W:Not using locking for read only lock file /var/lib/dpkg/lock E:Unablee to write to /var/cache/apt/ E: The package lists or status file could not be parsed or opened –  ahmad Sep 27 '12 at 13:36
    
here is the output, please> W:Not using locking for read only lock file /var/lib/dpkg/lock E:Unablee to write to /var/cache/apt/ E: The package lists or status file could not be parsed or opened –  ahmad Sep 27 '12 at 15:03
    
here is the result of umount umount; /dev/sda: not mounted umount; /dev/sda1: not mounted umount; /dev/sda2: not mounted umount; /dev/sda3: not mounted umount; /dev/sda4: not mounted umount; /dev/sd5: not mounted –  ahmad Sep 27 '12 at 15:14
    
output after command sudo fsck -f -p /dev/sda* fsck from util-linux-ng 2.17.2 fsck.ext2:Device or resource busy while trying to open /dev/sda Filesystem mounted or opened exclusively by another program? fsck:fsck.ntfs:not found fsck:Error 2 while executing fsck.ntfs for /dev/sda1 fsck:fsck.ntfs:not found fsck:Error 2 while executing fsck.ntfs for /dev/sda2 fsck:fsck.ntfs:not found fsck:Error 2 while executing fsck.swap for /dev/sda5 dosfsck 3.0.12,29 Oct 2011, FAT32, LFN –  ahmad Sep 27 '12 at 15:20
    
fsck.ext2:Attempt to read block from filesystem resulted in short read while trying to open /dev/sda4 Could this be zero-length partition? /dev/sda3: 637 files, 862134/1279168 clusters /dev/sda6: 809756/10829824 files (0.3% non-contiguous), 19267981/43304704 blocks –  ahmad Sep 27 '12 at 15:21
show 7 more comments

It seems you have a problem in your filesystem. To solve it:

from you grub menu go to recovery mode and then drop to troot shell.

then issue this command:

sudo fsck -f -p /dev/sda* 
share|improve this answer
    
Thank you , I executed this command and following is the output: –  ahmad Sep 27 '12 at 13:48
    
Where is the output? –  user61928 Sep 27 '12 at 14:04
    
fsck from util-linux-ng 2.17.2 fsck.ext2:Device or resource busy while trying to open /dev/sda Filesystem mounted or opened exclusively by another program? fsck:fsck.ntfs:not found fsck:Error 2 while executing fsck.ntfs for /dev/sda1 fsck:fsck.ntfs:not found fsck:Error 2 while executing fsck.ntfs for /dev/sda2 fsck:fsck.ntfs:not found fsck:Error 2 while executing fsck.swap for /dev/sda5 dosfsck 3.0.12,29 Oct 2011, FAT32, LFN –  ahmad Sep 27 '12 at 14:09
    
fsck.ext2:Attempt to read block from filesystem resulted in short read while trying to open /dev/sda4 Could this be zero-length partition? /dev/sda3: 637 files, 862134/1279168 clusters /dev/sda6: 809756/10829824 files (0.3% non-contiguous), 19267981/43304704 blocks –  ahmad Sep 27 '12 at 14:10
    
ok try to unmount the disk umount /dev/sda* then do fsck again –  user61928 Sep 27 '12 at 14:11
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.