Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Package installation errors

0 views
Skip to first unread message

Ram

unread,
Dec 17, 2005, 8:30:18 PM12/17/05
to
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

Peter Nuttall

unread,
Dec 17, 2005, 8:50:09 PM12/17/05
to
On Sat, Dec 17, 2005 at 06:05:00PM -0700, Ram wrote:
> 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'm guessing that you upgraded to unstable, which lives up to its name.

<snip>


> 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.

this 50 not upgraded, 559 not fully installed business is worrying me.
Are you sure your upgrade and dist-upgrade worked?


> 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)
> #
>

i
Right now, the sid kernel images are broken. see
http://wiki.debian.org/TopicDebianDevel for more infomation. Thats
messing up udev, which as you see wants a recent kernel image.

>
>
> So what am I doing wrong ?

I feel I should warn you off running unstable. Its going though a lot of
work right now, which means massive breakages. Also, before sarge was
released, everyone ran unstable or testing becuase woody was too old. I
feel that sarge is still reasonably current.

>
> Thanks for the help in advance
> Ram

Sorry I couldn't be more help

Pete


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Ram

unread,
Dec 17, 2005, 9:30:18 PM12/17/05
to
Thanks for the response Pete. I did notice some errors during the  upgrade and dist upgrade options. But most unfortunately, there was a power outage before I could capture the errors. So,  if I have to revert everything back to the stable version - Sarge, what are steps that I need to follow ? Few things that I can think of from my limited knowledge :

1) My /etc/apt/sources.list has the following :
   deb http://http.us.debian.org/debian unstable main

  I assume, I need to  change this to :
 deb http://http.us.debian.org/debian stable main contrib non-free ?
 
 That should start updating the packages from the stable versions ?

2) After this, is it as simple as :
apt-get -u dist-upgrade  ?

Also, is there a way to find out what version of stable debian is installed on my system ? I am guessing it is woody but how can I confirm ?

Thanks
Ram

Gabriel

unread,
Dec 17, 2005, 9:50:07 PM12/17/05
to
Ram wrote:
Thanks for the response Pete. I did notice some errors during the  upgrade and dist upgrade options. But most unfortunately, there was a power outage before I could capture the errors. So,  if I have to revert everything back to the stable version - Sarge, what are steps that I need to follow ? Few things that I can think of from my limited knowledge :

1) My /etc/apt/sources.list has the following :
   deb http://http.us.debian.org/debian unstable main

  I assume, I need to  change this to :
 deb http://http.us.debian.org/debian stable main contrib non-free ?
 
 That should start updating the packages from the stable versions ?
No, after doing this you should edit your /etc/apt/preferences as follow:

Package: *
Pin: release a=stable
Pin-Priority: 1001

It tells apt that he can and should downgrade the packages to stable.
More info with man apt_preferences
-- 
Cheers

--
Gabriel Parrondo
Linux User #404138

"In theory there's no difference between the theory and the practice. In the practice There is."
0 new messages