Installing VLC and broken packages

Asked by davidzaq1

Hello,

I have ubuntu 16.04 on a Dell vosto 1500 laptop.

I was trying to install VLC as the previous version I had was having glitches.
I did sudo apt-get update and tried to install VLC but received the following messages.

The following packages have unmet dependencies:
 vlc : Depends: libgles1-mesa (>= 7.8.1) but it is not going to be installed or
                libgles1
E: Unable to correct problems, you have held broken packages.

E: Unable to correct problems, you have held broken packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

Is there a way to fix this?

Thank you.
David

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
davidzaq1
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output of the commands

uname -a
lsb_release -crid
sudo apt-get update
sudo dpkg --audit
apt-cache policy vlc libgles1-mesa libgles1

Revision history for this message
davidzaq1 (david3a9x) said :
#2

Hello,

Thank you for your reply. here are the outputs.

1). ~$ uname -a
Linux roo2 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

2). $ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

3). $ sudo apt-get update
[sudo] password for stanw:
Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [511 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [40.6 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [61.0 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [493 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [59.2 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [54.3 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [163 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [212 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [593 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [572 kB]
Hit:15 http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu xenial InRelease
Get:16 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [304 kB]
Hit:17 http://ppa.launchpad.net/ubuntu-desktop/gnome-software/ubuntu xenial InRelease
Get:18 http://ppa.launchpad.net/videolan/master-daily/ubuntu xenial InRelease [17.6 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [203 kB]
Hit:20 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Get:21 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,888 B]
Get:22 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4,684 B]
Get:23 http://us.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
Get:24 http://ppa.launchpad.net/videolan/master-daily/ubuntu xenial/main Sources [1,896 B]
Fetched 3,606 kB in 7s (479 kB/s)
Reading package lists... Done

4). $ sudo dpkg --audit

5). $ apt-cache policy vlc libgles1-mesa libgles1
vlc:
  Installed: (none)
  Candidate: 3.0.0~~git20160813+r65787+62~ubuntu16.04.1
  Version table:
     3.0.0~~git20160813+r65787+62~ubuntu16.04.1 500
        500 http://ppa.launchpad.net/videolan/master-daily/ubuntu xenial/main amd64 Packages
     2.2.2-5ubuntu0.16.04.3 500
        500 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
     2.2.2-5 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
libgles1-mesa:
  Installed: (none)
  Candidate: 12.0.6-0ubuntu0.16.04.1
  Version table:
     12.0.6-0ubuntu0.16.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
     11.2.0-1ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libgles1:
  Installed: (none)
  Candidate: (none)
  Version table:

I hope this helps.

Thank you,

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

The version of VLC that you try to install is not the official Ubuntu-provided version, but from a PPA.
For problems with software from a PPA please contact the provider of the PPA.

What output do you get for the command
sudo apt-get install libgles1-mesa

Revision history for this message
davidzaq1 (david3a9x) said :
#4

Hello,

Thank you for your reply.

I have tried to install VLC through Ubuntu software. but nothing happens.
It will not load. The Ubuntu software is the only place I get my programs from.

As for the command above, here is the output.

~$ sudo apt-get install libgles1-mesa
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:
 libgles1-mesa : Depends: libglapi-mesa (= 12.0.6-0ubuntu0.16.04.1) but 17.0.7-0ubuntu0.16.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

As you can see, there are still problems. I do not know how to fix this.

Thank you,

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

What is the output of

apt-cache policy libgles1-mesa libglapi-mesa

Revision history for this message
davidzaq1 (david3a9x) said :
#6

Hello,

Thank you again for your reply.

Here is the output of the above command:

$ apt-cache policy libgles1-mesa libglapi-mesa
libgles1-mesa:
  Installed: (none)
  Candidate: 12.0.6-0ubuntu0.16.04.1
  Version table:
     12.0.6-0ubuntu0.16.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
     11.2.0-1ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libglapi-mesa:
  Installed: 17.0.7-0ubuntu0.16.04.1
  Candidate: 17.0.7-0ubuntu0.16.04.1
  Version table:
 *** 17.0.7-0ubuntu0.16.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     11.2.0-1ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

I hope this helps.

Thank you.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

In Xenial libgles1-api has been replaced by libgles2-api

You need a version of vlc that no more depends on libgles1-api.

As already written: This is a problem of the PPA. Contact its provider.

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

Oops, sorry mistyped the package names, should of course be libgles1-mesa and libgles2-mesa

Revision history for this message
davidzaq1 (david3a9x) said :
#9

Hello,

I do not understand why there is a problem here.

I do not know why I have this problem with VLC.

All I am trying to do is install it through the software center.

Is there a way to fix this problem?

If there is some version of a ppa that is installed, can it be uninstalled so I can get the version in the software center?

Or is there a different version of VLC I can get?

Thank you.

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

VLC is available in several sources: the standard Ubuntu-provided repositories and PPAs.

The root cause of your problem is that you selected to install it from a PPA, and the version from that PPA (videolan/master-daily) is broken (uninstallable due to the libgles1-mesa -> libgles2-mesa change).

You have to disable that PPA and revert to the standard Ubuntu-provided version or eventually select a different PPA if you deem the Ubuntu-provided version not fulfilling your desires.

Revision history for this message
davidzaq1 (david3a9x) said :
#11

Hello,

I am sorry for the late reply.

This solved my problem.

thank you