Package installation errors



Hi all,
 i am a new user of linux in general  and debian in specific. I recently updated my system with the following commands :
#apt-get update
#apt-get upgrade
#apt-get dist upgrade

I now notice that somehow, I can't run my 'vi' or 'vim' commands anymore. So I tried to track the vi command first but wasn't successful as seen below :

# which vi
# whereis vi
vi: /usr/bin/vi /usr/share/vi /usr/share/man/man1/vi.1.gz
# ls -l /usr/bin/vi
lrwxrwxrwx 1 root root 20 2005-01-22 09:55 /usr/bin/vi -> /etc/alternatives/vi
# vi
-su: vi: command not found
# /usr/bin/vi
-su: /usr/bin/vi: No such file or directory
# cd /usr/bin/
/usr/bin# ls -l vi
lrwxrwxrwx 1 root root 20 2005-01-22 09:55 vi -> /etc/alternatives/vi
/usr/bin# ./vi
-su: ./vi: No such file or directory
/usr/bin# cd /etc/alternatives/
/etc/alternatives# ls -l vi
lrwxrwxrwx 1 root root 12 2005-03-09 18:36 vi -> /usr/bin/vim
/etc/alternatives# /usr/bin/vim
-su: /usr/bin/vim: No such file or directory
/etc/alternatives# cd /usr/bin/
/usr/bin# ls -l vim
ls: vim: No such file or directory
/usr/bin# ls -l vim
ls: vim: No such file or directory


At this time, I tried to re-install vi/vim as follows, but again got errors :

# apt-get install vim-full
Reading package lists... Done
Building dependency tree... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
  udev: Depends: hotplug (>= 0.0.20040329-17)
  vim-full: Depends: libruby1.8 (>= 1.8.3-3) but it is not going to be installed
            Depends: tcl8.4 (>= 8.4.5) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  udev
The following packages will be upgraded:
  udev
1 upgraded, 0 newly installed, 0 to remove and 50 not upgraded.
559 not fully installed or removed.
Need to get 0B/278kB of archives.
After unpacking 307kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 101947 files and directories currently installed.)
Preparing to replace udev 0.056-2 (using .../archives/udev_0.076-6_i386.deb) ...
udev requires a kernel >= 2.6.12, upgrade aborted.
dpkg: error processing /var/cache/apt/archives/udev_0.076-6_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:

 /var/cache/apt/archives/udev_0.076-6_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

OK. So at this stage, I tried installing the new kernel image as one of the error messages above suggested :

# apt-get install linux-image-2.6.14-2-386
Reading package lists... Done
Building dependency tree... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
  linux-image-2.6.14-2-386: Depends: yaird but it is not going to be installed or
                                     initramfs-tools but it is not going to be installed or
                                     linux-initramfs-tool
  udev: Depends: hotplug (>= 0.0.20040329-17)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
kotapc:~# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  udev
The following packages will be upgraded:
  udev
1 upgraded, 0 newly installed, 0 to remove and 50 not upgraded.
559 not fully installed or removed.
Need to get 0B/278kB of archives.
After unpacking 307kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 101947 files and directories currently installed.)
Preparing to replace udev 0.056-2 (using .../archives/udev_0.076-6_i386.deb) ...
udev requires a kernel >= 2.6.12, upgrade aborted.
dpkg: error processing /var/cache/apt/archives/udev_0.076-6_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/udev_0.076-6_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
#



So what am I doing wrong ?

Thanks for  the help in advance
Ram


Relevant Pages

  • Re: apt-get problems.
    ... >apt-get, lovely tool. ... unrelated to the program you are trying to install or upgrade, ... packages which depend on the package you have asked to remove. ... printer related kde app and much of kde itself just by hovering the ...
    (Debian-User)
  • sarge dist-upgrade "Package is in a very bad inconsistent state"
    ... You might want to run `apt-get -f install' to correct these: ... Try 'apt-get -f install' with no packages. ... postgresql postgresql-client ...
    (Debian-User)
  • Re: Updates SOLVED!
    ... Putting Synaptic to one side, and after having done the apt-get update, ... problems with the vlc package, ... Then an apt-get install vlc may have printed out some usefull info. ... We've already confirmed that if you originally got vlc from freshrpms, the maintainer should be shown as Matthias Saou, so the packages above should also show him as the maintainer. ...
    (Fedora)
  • re-install to fix dependencies?
    ... did apt-get update then apt-get -t unstable install ... lately it tried to remove sawfish-gnome by ... that but I tried to fix the dependencies many times ...
    (Debian-User)
  • Re: Linux Vs. FreeBSD
    ... >> has made a lot of effort towards making it easy to install. ... Debian's not a bad distro. ... although packages like this are few and far between. ... since the binary dependencies certainly wouldn't be any ...
    (comp.os.linux.misc)