LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2009, 06:30 PM   #1
nemp
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Rep: Reputation: 0
trouble installing libdrm-dev


When I try to install libdrm-dev (I need it to compile video card driver) I get following error:

Code:
The following NEW packages will be installed:
  libdrm-dev
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
Need to get 0B/320kB of archives.
After this operation, 758kB of additional disk space will be used.
(Reading database ... 81298 files and directories currently installed.)
Unpacking libdrm-dev (from .../libdrm-dev_2.3.1-2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libdrm-dev_2.3.1-2_i386.deb (--unpack):
 trying to overwrite `/usr/include/drm/drm.h', which is also in package linux-libc-dev
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libdrm-dev_2.3.1-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
nemp@nemp-laptop:~$
I'm using SimpyMepis8 RC1
How can i fix this?
Thanks
 
Old 01-28-2009, 11:37 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Hi Nemp,
That's really strange. I checked in the file list of the linux-libc-dev package and there is no drm/drm.h file contained in that package, at least not in the debian package. Does Mepis have different files in their packages? WTF?
Maybe reinstalling the linux-libc-dev package will fix this. As I said, very strange.
Cheers,
jdk

Last edited by jdkaye; 01-28-2009 at 11:38 AM.
 
Old 01-28-2009, 12:49 PM   #3
nemp
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Hi jdkaye,
Reinstalling the linux-libc-dev package didn't fix the problem. :S
 
Old 01-28-2009, 01:35 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
Reinstalling the linux-libc-dev package didn't fix the problem.
The approach dealing with a bug like your "libdrm-dev problem"
could be as follows :

Uninstall 'linux-libc-dev' , next install 'ibdrm-dev'
and finally reinstall 'linux-libc-dev'

This "reverse order of package install"
sometimes circumvents the bug.

( I have had a similar situation with some other
packages, Debian 3, or an early Ubuntu, some years ago. )

....

Last edited by knudfl; 01-28-2009 at 01:39 PM.
 
Old 01-28-2009, 02:02 PM   #5
nemp
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Hi knudfl,
I removed linux-libc-dev and then installed libdrm-dev, but now I cannot install linux-libc-dev again.
I get following error:

Code:
The following NEW packages will be installed:
  linux-libc-dev
0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 0B/784kB of archives.
After this operation, 4198kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  linux-libc-dev
Install these packages without verification [y/N]? y
(Reading database ... 78794 files and directories currently installed.)
Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.27-12mepis1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-libc-dev_2.6.27-12mepis1_i386.deb (--unpack):
 trying to overwrite `/usr/include/drm/mga_drm.h', which is also in package libdrm-dev
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-libc-dev_2.6.27-12mepis1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
nemp@nemp-laptop:~$
 
Old 01-28-2009, 02:51 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
OK, linux-libc-dev, are you sure, you need this package ?
Seems to be different from the genuine Debian and Ubuntu
packages, linux-libc-dev.
This package is not used much, so it may have low priority
for bug fixing. ( Resembles 'linux-headers' )
(( http://packages.ubuntu.com/intrepid-...linux-libc-dev ))
Quote:
This package provides headers from the Linux kernel. These headers are used by the installed headers for GNU glibc and other system libraries. They are NOT meant to be used to build third-party modules for your kernel. Use linux-headers-* packages for that.
Having the package in /var/cache/apt/archives/ it is possible
to make a copy to your /home , unpack it, unpack 'data.tgz'
( or unpack with 'dpkg -x <package> new_directory/ )
( Create the "new_directory" before unpacking )

Then remove conflicting headers ( if any ), repack the result
( usr/ ) to linux-libc-dev_2.6.27-13.tar.gz , next rename to
linux-libc-dev_2.6.27-13.tgz and finally :

# 'alien linux-libc-dev_2.6.27-13.tgz' to have a '.deb' again.
This is "cheating" but an easy way to make a package !

....

Last edited by knudfl; 01-28-2009 at 03:26 PM.
 
  


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
Installing RIP LinuX on a USB drive - device name /dev/sdc becomes /dev/sda Mleahy Linux - Software 1 07-30-2008 08:57 PM
Can't upgrade libdrm to 2.3 SilverZero Linux - Newbie 2 03-20-2007 03:57 PM
Trouble Installing Dev Tools on RHEL4 kunzjj Linux - General 1 03-06-2007 10:36 AM
xwindows trouble -no /dev/mouse /dev/input/mice fatblueduck Linux - General 2 06-05-2005 11:03 PM
trouble with /dev/psaux. levicc00123 Debian 3 09-26-2004 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04: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