Results 1 to 7 of 7

Thread: cannot install libgl1-mesa-dev via apt-get

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    3

    cannot install libgl1-mesa-dev via apt-get

    When I tried to install it, I got the following error:
    Code:
    root@Microknoppix:/wine-git# apt-get install libgl1-mesa-dev
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     libgl1-mesa-dev : Depends: libgl1-mesa-glx (= 7.7.1-4) but 7.9+repack-2 is to be installed
    E: Broken packages
    I have no clues why it happens.

  2. #2
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Quote Originally Posted by Iporem View Post
    When I tried to install it, I got the following error:
    Code:
    root@Microknoppix:/wine-git# apt-get install libgl1-mesa-dev
    Reading package lists... Done
    Building dependency tree 
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
     
    The following packages have unmet dependencies:
    libgl1-mesa-dev : Depends: libgl1-mesa-glx (= 7.7.1-4) but 7.9+repack-2 is to be installed
    E: Broken packages
    I have no clues why it happens.
    Did you really read the error message?
    Code:
     
    The following packages have unmet dependencies:
    libgl1-mesa-dev : Depends: libgl1-mesa-glx (= 7.7.1-4) but 7.9+repack-2 is to be installed
    E: Broken packages
    Which tells about a version conflict. You may have to look up repositories to get compatible package versions, and in some cases, you're simply stuck. You should always check actual versions before installing - which is why tools like synaptic may be handy.

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Posts
    3
    OK, I decided to downgrade mesa via aptitiude:
    Code:
    root@Microknoppix:/# aptitude install libgl1-mesa-glx=7.7.1-4
    The following packages will be DOWNGRADED:
       libgl1-mesa-glx
    0 packages upgraded, 0 newly installed, 1 downgraded, 0 to remove and 221 not upgraded.
    Need to get 154 kB of archives. After unpacking 4096 B will be freed.
    Get:1 http://ftp.de.debian.org/debian/ stable/main libgl1-mesa-glx i386 7.7.1-4 [154 kB]
    Fetched 154 kB in 1s (130 kB/s)
    dpkg: warning: downgrading libgl1-mesa-glx from 7.9+repack-2 to 7.7.1-4.
    (Reading database ... 86002 files and directories currently installed.)
    Preparing to replace libgl1-mesa-glx 7.9+repack-2 (using .../libgl1-mesa-glx_7.7.1-4_i386.deb) ...
    Unpacking replacement libgl1-mesa-glx ...
    dpkg: ../../src/archives.c:823: tarobject: Assertion `r == stab.st_size' failed.
    E: Sub-process /usr/bin/dpkg exited unexpectedly
    A package failed to install.  Trying to recover:
    Then I had an attempt to install synaptic:
    Code:
    root@Microknoppix:/# aptitude install synaptic
    No packages will be installed, upgraded, or removed.
    0 packages upgraded, 0 newly installed, 0 to remove and 222 not upgraded.
    Need to get 0 B of archives. After unpacking 0 B will be used.
    E: I wasn't able to locate file for the libgl1-mesa-glx package. This might mean you need to manually fix this package.
    E: I wasn't able to locate file for the libgl1-mesa-glx package. This might mean you need to manually fix this package.
    E: Internal error: couldn't generate list of packages to download

  4. #4
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    But synaptic is already installed on Knoppix 6.X. Look under Main menu, Preferences.

    It can be tricky to downgrade. Therefore, going out on a hunt for the needed package versions may therefore be worthwhile. Downgrading a supporting package feels a bit unnatural, but sometimes, we have to do it. With synaptic, it is easy to add alternative repositories, where the wanted versions may often be found.

    With the error message you got on your downgrade attempt, I would have asked some aptitude specialists what best to do next. (After having done a comprehensive hunt for the right new version, that is.) It's not a Knoppix-specific question. Googling "libgl1-mesa-glx...."etc could give some good hints - both for solutions and where best to ask.

  5. #5
    Junior Member
    Join Date
    Jun 2011
    Posts
    3
    The problem is that libgl1-mesa-glx seems to be broken in some ways in vanilla Knoppix:
    Code:
    apt-get install --reinstall libgl1-mesa-glx
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     libgl1-mesa-glx : PreDepends: multiarch-support but it is not going to be installed
    E: Broken packages
    I keep looking for a solution.
    I hope the next Knoppix version will have this problem solved.

  6. #6
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by Iporem View Post
    The problem is that libgl1-mesa-glx seems to be broken in some ways in vanilla Knoppix
    Try to do a 'apt-get update' prior to doing anything else. It's not uncommon that your locally stored index files get out of sync with the remote repositories.

  7. #7
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Quote Originally Posted by Iporem View Post
    The problem is that libgl1-mesa-glx seems to be broken in some ways in vanilla Knoppix:
    Code:
    apt-get install --reinstall libgl1-mesa-glx
    Reading package lists... Done
    Building dependency tree 
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
    libgl1-mesa-glx : PreDepends: multiarch-support but it is not going to be installed
    E: Broken packages
    I keep looking for a solution.
    I hope the next Knoppix version will have this problem solved.
    I don't think you have shown this to be a Knoppix-specific problem. Which it would be if Knoppix, for example, relied on some older packages, and could not easily be upgraded without breaking. On the contrary, you started out with a version conflict among packages to be installed.

    Maybe this seems like nit-picking for you - you have a Knoppix that does not perform as it should, so there is obviously something broken in Knoppix, isn't it? Needs not be at all. If it belongs to kernel development, it should be fixed there, if it belongs to Debian development, it should be fixed there. Dependency problems among installed packages will be resolved in the next release, but there is no guarantee that non-installed packages will be conflict-free. Klaus K can't postpone a release until all problems with all possible-to-install packages are solved.. or rather, maybe he can, but we don't want him to - we can't wait indefinitely.

    And if the problem comes from package development/restructuring, which I think may be the case here, the simplest solution may be to find somebody who has got this working, and copy that setup.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Corsair Vengeance RGB Pro 128GB (4 x 32GB) PC4-25600 (DDR4-3200) Memory... picture

Corsair Vengeance RGB Pro 128GB (4 x 32GB) PC4-25600 (DDR4-3200) Memory...

$200.00



Corsair Vengeance LPX DDR4 Lot of 2 16GB Ram Sticks Memory 3200MHz picture

Corsair Vengeance LPX DDR4 Lot of 2 16GB Ram Sticks Memory 3200MHz

$29.97



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory picture

Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory

$54.99



Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel picture

Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel

$33.99



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$15.90



Corsair Dominator Platinum 16GB (2 x 8GB) 3200mhz DDR4 RAM picture

Corsair Dominator Platinum 16GB (2 x 8GB) 3200mhz DDR4 RAM

$40.00



Lot of 20 320GB - 16GB (x20) 2RX8 2666V Samsung PC4 DDR4 SODIMM Memory RAM +CASE picture

Lot of 20 320GB - 16GB (x20) 2RX8 2666V Samsung PC4 DDR4 SODIMM Memory RAM +CASE

$399.99



HYNIX HMT31GR7BFR4C-H9 8GB PC3-10600R DDR3-1333MHZ 2Rx4 (LOT OF 8) DRAT-3 picture

HYNIX HMT31GR7BFR4C-H9 8GB PC3-10600R DDR3-1333MHZ 2Rx4 (LOT OF 8) DRAT-3

$40.00



128GB Kit 4x 32GB PC4-17000 LRDIMM DELL POWEREDGE R730xd R730 R630 Memory RAM picture

128GB Kit 4x 32GB PC4-17000 LRDIMM DELL POWEREDGE R730xd R730 R630 Memory RAM

$139.96