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
  •  


SanDisk 128GB Ultra Dual Drive USB Type-C, USB 3.1 Flash Drive - SDDDC2-032G-G46 picture

SanDisk 128GB Ultra Dual Drive USB Type-C, USB 3.1 Flash Drive - SDDDC2-032G-G46

$10.99



SanDisk 256GB Ultra USB 3.0 Flash Drive - SDCZ48-256G-U46 picture

SanDisk 256GB Ultra USB 3.0 Flash Drive - SDCZ48-256G-U46

$19.99



SanDisk 32GB Ultra Drive Dual Go USB Type-C Flash Drive, Green - SDDDC3-032G-G46 picture

SanDisk 32GB Ultra Drive Dual Go USB Type-C Flash Drive, Green - SDDDC3-032G-G46

$8.99



SanDisk 128GB Ultra USB Type-C Flash Drive - SDCZ460-128G-G46 picture

SanDisk 128GB Ultra USB Type-C Flash Drive - SDCZ460-128G-G46

$13.99



Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack picture

Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack

$4.99



64GB USB 3.0 Flash Drive USB Memory Stick High Speed Retractable USB Thumb Drive picture

64GB USB 3.0 Flash Drive USB Memory Stick High Speed Retractable USB Thumb Drive

$5.99



Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 512GB 1TB 2TB picture

Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 512GB 1TB 2TB

$10.30



2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage New picture

2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage New

$10.79



LOT 32GB 64GB 128GB USB 3.0 Flash Drive Memory Stick Retractable Thumb Drive picture

LOT 32GB 64GB 128GB USB 3.0 Flash Drive Memory Stick Retractable Thumb Drive

$420.99



USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$353.99