LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-16-2003, 02:41 PM   #1
zuma
LQ Newbie
 
Registered: Dec 2003
Distribution: gentoo
Posts: 12

Rep: Reputation: 0
apt-get problem


have been fine so far with installing new programms with apt-get.

recently i canīt do anything with it. always get after apt-get check:

Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run Apt-get -f install' to correct these.
Sorry, but the following packages have unmet dependencies:
libqt3-mt-dev: Depends: libxcursor-dev but it is not installed
E: Unmet dependencies. Try using -f.

when trying apt-get -f install i get an error from dpkg


Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
libxcursor-dev
The following NEW packages will be installed:
libxcursor-dev
0 packages upgraded, 1 newly installed, 0 to remove and 692 not upgraded.
10 packages not fully installed or removed.
Need to get 0B/27.3kB of archives. After unpacking 135kB will be used.
Do you want to continue? [Y/n] y
(Reading database ... 114206 files and directories currently installed.)
Unpacking libxcursor-dev (from .../libxcursor-dev_1.0.2-2_i386.deb) ...
dpkg: error processing
/var/cache/apt/archives/libxcursor-dev_1.0.2-2_i386.deb (--unpack):
trying to overwrite /usr/X11R6/include/X11/Xcursor/Xcursor.h', which is
also in package xlibs-dev
Errors were encountered while processing:
/var/cache/apt/archives/libxcursor-dev_1.0.2-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

i dont get the problem. tried to apt-get clean. after that tried to get the
missing dependency libxcurser... but had the same error when using dpkg to
unpack it.

dont have any idea anymore.
thanks for any hints.

Last edited by zuma; 12-16-2003 at 02:42 PM.
 
Old 12-17-2003, 01:52 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
See http://bugs.debian.org/222067
 
Old 12-17-2003, 03:19 PM   #3
zuma
LQ Newbie
 
Registered: Dec 2003
Distribution: gentoo
Posts: 12

Original Poster
Rep: Reputation: 0
how do i get rid of xlibs-dev

thanks a lot for the link.

now i know that i have an unofficial version of xlibs-dev.

but since i am a complete newbie i donīt really know how to do that. do i have to remove the directory /usr/share/doc/ where it lies (as far as i can trust īlocateī or do i do this with apt-get?

do i have to apt-get the new package then form http://packages.debian.org/xlibs-dev?

sorry for askin such a probably obvios question. but i just want to be shure what i am removing in order not to destroy the working parts of my system.

many thanks
 
Old 12-17-2003, 08:11 PM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Don't remove your /usr/share/doc. Deleting it deletes all the documentation of all the packages in your system.

Also, to locate which package contains a file foo, you can run 'dpkg --search foo' (or faster version, if you have installed dlocate package: 'dlocate foo'), and to locate which files are contained in package foo, you can run 'dpkg --listfiles foo' (or again: 'dlocate foo')

What debian version are you using? (That is, how did you install your debian and what is the contents of /etc/apt/sources.list and /etc/apt/apt.conf) The package libxcursor-dev exists only in the testing/unstable, so you are probably using one of them.

Afther reading your first post more carefully, I found out that '692 not upgraded.' which sounds quite strange too.


What to do next?
  • Check that the contents of /etc/apt/sources.list are correct (or more precisely: that they define package lists for the distribution you want to use).
  • Run 'apt-get update' and 'apt-get dist-upgrade' and see if the problem gets fixed.
  • If not, is the problem same? If it is, then you could probably have to manually update the xlibs-dev. (how it got wrong in the first place? Installed from knoppix?)

And the problem is still here? Ok, the hard way. Here is how to update xlibs-dev manually. Two steps. a) Retrieve the correct debian package and b) install it.

Retrieving:
The version number of the file depends on the distribution you are using (and there are also local mirrors you should be using when you retrieve many packages).
For unstable: http://ftp.debian.org/debian/pool/ma....1-14_i386.deb
For testing: http://ftp.debian.org/debian/pool/ma...-12.1_i386.deb
For stable: http://ftp.debian.org/debian/pool/ma...oody1_i386.deb
So either say: 'wget yourURL', or use your favorite browser to get those files.
(these could be normally retrieved automaticly by apt and could be easily retrieved by using packgages.debian.org, but it is down for the moment)

Installing
Run as root: 'dpkg -i yourxlibspackage.deb' (for example in stabe run: 'dpkg -i xlibs-dev_4.1.0-16woody1_i386.deb') in the directory where you retrieved your package.

Now the problem should be fixed and other packages should be installable again.

Finally
Don't forget to came back here and reply on how did it go and ask for possible additional questions.

Last edited by ToniT; 12-17-2003 at 08:12 PM.
 
Old 12-18-2003, 10:21 AM   #5
fragglehorn
Member
 
Registered: Oct 2002
Location: I-Town, NY
Distribution: Debian, Slackware
Posts: 130

Rep: Reputation: 15
Bear in mind that packages.debian.org may still be having problems after the break-in.
 
Old 12-21-2003, 08:17 AM   #6
zuma
LQ Newbie
 
Registered: Dec 2003
Distribution: gentoo
Posts: 12

Original Poster
Rep: Reputation: 0
cannot install package- segmentation fault

thanx for the help and links.

think i finally got the right package and tried to install it but i hit a new problem: this are the last lines of -apt-get -f install:

...
fr_CH.ISO-8859-1... done
fr_FR.ISO-8859-15@euro... done
fr_FR.ISO-8859-1... done
fr_FR.UTF-8.../usr/sbin/locale-gen: line 32: 3856 Segmentation fault localedef -i $input -c -f $charset -A /etc/locale.alias $locale
dpkg: error processing locales (--configure):
subprocess post-installation script returned error exit status 139
Setting up xlibs-data (4.3.0-0pre1v4) ...

Setting up xlibs (4.3.0-0pre1v4) ...

Setting up xlibs-dev (4.3.0-0pre1v4) ...
Errors were encountered while processing:
locales
E: Sub-process /usr/bin/dpkg returned an error code (1)


and now it seems the problem is getting more and more frightening to me. read about bad ram and real hardware problems..
what is the matter with locale-gen?


regards

Last edited by zuma; 12-21-2003 at 12:39 PM.
 
Old 12-21-2003, 05:50 PM   #7
KneeLess
Member
 
Registered: May 2003
Distribution: Debian GNU/Linux 3.0 Sid, OpenBSD 3.5
Posts: 190

Rep: Reputation: 30
If you're scared about bad ram try: MemTest86. Run it for about half an hour, but it will be evident immediately if you have bad ram.
 
Old 12-23-2003, 04:54 AM   #8
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
After getting yourself out of the first mine, looks like you hit to an other one:
http://bugs.debian.org/198099

 
Old 12-23-2003, 06:55 AM   #9
zuma
LQ Newbie
 
Registered: Dec 2003
Distribution: gentoo
Posts: 12

Original Poster
Rep: Reputation: 0
system is crashing

Ok, this will take me a while.

my system is crashing down now once in a while which never happened before. whell not exactly crashing completely. kde is dead and with ctr-alt-f6 i still get a command line but i have strange patterns of colors in front of the shell so i cannot do anything but to lock in as root and reboot. that is still something. after rebooting i am able to work with it for a while untill the next crash...

but never mind- iīll somehow manage it in the end i hope.

but first of all thanx for all the help so far and merry x-mas. at least i wonīt be bored the next days.
 
Old 01-06-2004, 09:32 AM   #10
zuma
LQ Newbie
 
Registered: Dec 2003
Distribution: gentoo
Posts: 12

Original Poster
Rep: Reputation: 0
changed computer and distro

After trying this and that i always ran into "Segmentation Fault"
Scince it was not the ram which i had tested i lost my patience and got a new computer on which i am running gentoo now and it works perfectly well.

so thanks for your help anyway. i am waiting now for the next problems to show up and i hope it won't be too soon.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with apt efi360 Debian 18 12-24-2005 06:12 PM
Apt-get problem davholla Debian 3 07-01-2005 03:23 PM
problem with apt get waelali Linux - Software 1 03-12-2005 05:55 AM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 10:54 PM
apt-get problem mmm Linux - General 1 11-11-2003 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration