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
  •  


1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$273.00



Dell R730xd 26 Port SFF 2x E5-2697v4 36-Cores H730 128GB Server 2x SFP 10G ENT picture

Dell R730xd 26 Port SFF 2x E5-2697v4 36-Cores H730 128GB Server 2x SFP 10G ENT

$490.00



Dell PowerEdge R430 3.5 1U 2x E5-2690 v3 2.6ghz 24-Cores 256gb 4x Trays 2x 550w picture

Dell PowerEdge R430 3.5 1U 2x E5-2690 v3 2.6ghz 24-Cores 256gb 4x Trays 2x 550w

$359.99



Dell PowerEdge R7425 2x AMD EPYC 7251 64GB RAM H730P RAID NO HDD/OS #73 picture

Dell PowerEdge R7425 2x AMD EPYC 7251 64GB RAM H730P RAID NO HDD/OS #73

$640.00



Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture

Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD

$208.99



Dell PowerEdge R420 Dual Intel Xeon E5-2440 v2 @1.90GHz 32GB RAM No HDD H710 picture

Dell PowerEdge R420 Dual Intel Xeon E5-2440 v2 @1.90GHz 32GB RAM No HDD H710

$74.50



Dell PowerEdge R620 Server 2x E5-2660 v2 2.2GHz 20 Cores 256GB RAM 1x 480GB SSD picture

Dell PowerEdge R620 Server 2x E5-2660 v2 2.2GHz 20 Cores 256GB RAM 1x 480GB SSD

$139.99



Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 120Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 120Gb SSD/3x900Gb SAS, Proxmox

$320.00



Hp Server 6x146gb Hdd, 2x Xeon 3.4ghz, 4x4gb Ram picture

Hp Server 6x146gb Hdd, 2x Xeon 3.4ghz, 4x4gb Ram

$170.00



Dell Poweredge R210 II Server Xeon E3-1220 v2 3.1ghz Quad Core / NoRam / 1x Tray picture

Dell Poweredge R210 II Server Xeon E3-1220 v2 3.1ghz Quad Core / NoRam / 1x Tray

$69.99