[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

Reply to: