View Single Post
  #1 (permalink)  
Old 09-25-2005, 09:11 PM
sweta's Avatar
sweta sweta is offline
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 5
sweta will become famous soon enough
Default How to solve apt-get upgrade problem

After gonna throug instruction located on our group web site http://www.cyberciti.biz/nixcraft/vi...-security.html I run into following problem:

First I had typed the commands:

To configure mirrors
Code:
apt-setup
To build update lists
Code:
apt-get update
Get upgrade but don't install it (this is done so if some problem comes my system won't get in any trouble)
Code:
apt-get -d upgrade
Following command run it to following error:
Code:
apt-get  upgrade
Error

Quote:
E: This installation run will require temporarily removing the essential
package e2fsprogs due to a Conflicts/Pre-Depends loop. This is often
bad, but if you really want to do it, activate the APT::Force-LoopBreak
option.
E: Internal Error, Could not early remove e2fsprogs
Only use following commands if you got above error else forget it

I searched on net and no solution found, so I decided to go on myself. Only way to solve this problem was to remove e2fsprogs and reinstall it so here is what I did (do't reboot system till you have all update:

1)
Code:
apt-get remove  e2fsprogs
Confirm you wanna remove it; it will remove all stuff and automatically upgrade glibc to latest version.

2)
As soon as it returns to prompt reinstall e2fsprogs
Code:
apt-get install e2fsprogs
3)
Since e2fsprogs is so crtical package it removed update-rc.d and runleve command. Which result into following error (and you can't install any package via apt-get)
dpkg: `update-rc.d' not found on PATH.
However when you type above command it will report that update-rc.d command not found in PATH. So I just created soft link to it:
Code:
cp /bin/false /tmp
cd /tmp
ln -s false  update-rc.d
export PATH=$PATH:/tmp
4)
So next task is to get install update-rc.d which is part of file-rc package.
Code:
apt-get install file-rc
Some script still reports following error:
Quote:
Bug#238546: /usr/sbin/invoke-rc.d: /usr/sbin/invoke-rc.d: line 1:
/sbin/runlevel: No such file or directory
Above command will fix that too...

5) Install init/telinit command removed by upgrade:
Code:
 apt-get install sysvinit
6) Done. You can now reboot system safely.
__________________
Friends - v-nessa - missyAdmin - LinuxChix
Reply With Quote