nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

How to solve apt-get upgrade problem

This is a discussion on How to solve apt-get upgrade problem within the Getting started tutorials forums, part of the Linux Getting Started category; 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 ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 09-25-2005, 10:11 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 154
Rep Power: 4
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
Sponsored Links
  #2 (permalink)  
Old 12-30-2005, 07:09 AM
King_hippo
Guest
 
Posts: n/a
Default Thanks!

Very helpful instructions, saved me from a reinstall.
Reply With Quote
  #3 (permalink)  
Old 01-09-2006, 06:18 AM
rrbored
Guest
 
Posts: n/a
Default same here!

same here...thanks alot for the walkthrough!
Reply With Quote
  #4 (permalink)  
Old 01-19-2006, 07:21 PM
Junior Member
 
Join Date: Jan 2006
Posts: 1
Rep Power: 0
frans
Default thanks

Also thanks, it worked fine. Only, i.a. directory /etc/rc2.d disappeared (which does not really matter to me, while other people may re-create original symlinks there).
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How do I install or upgrade an Linux RPM package? rockdalinux Getting started tutorials 1 11-05-2008 02:10 PM
How To Upgrade PHP sweta Ubuntu / Debian 0 05-03-2008 12:18 AM
Backup/Upgrade of Harddisk ricc Linux software 6 03-24-2008 08:04 PM
upgrade fedora7 to fedora8 with yum shabakeh CentOS / RHEL / Fedora 1 11-18-2007 09:17 AM
Upgrade Apache Server sweta Ubuntu / Debian 0 11-01-2007 03:53 AM


All times are GMT +5.5. The time now is 03:28 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36