I have some big problems with my packages in my Ubuntu 16.04 Xenial. In the last few days I've changed my sources.list
a lot and I've added some bunches of PPAs. Now I'm lost and don't know what to do.
I think I'm an intermediate Linux user. I started to use Debian 2 or 3 years ago, but I have problems everyday. In some months I had to format my machine more than 3 times due to problems with packages, drivers and multi-architecture.
This problem started when I tried to install VLC media player. They showed me that I have dependencies with libgles1-mesa
and the system can't solve by itself. Then it asked me to try apt-get -f install
to force the installation of dependencies, but my system can't solve this again.
After a lot of changes and attempts, I couldn't solve my problem, so here is some information about my status. I hope someone can help me to fix this.
I'm sorry about this, but my system is in Brazilian Portuguese. [Edit: the below is partially translated.]
uname -a
Linux Max-Notebook 4.8.0-45-generic #48~16.04.1-Ubuntu SMP Fri Mar 24 12:46:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
sudo apt-get install vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libgl1-mesa-glx : Depends: libglapi-mesa (= 17.0.1+git20170319+17.0.07adc57f-0ubuntu0ricotz~xenial) but 11.2.0-1ubuntu2 is to be installed
libglapi-mesa : Breaks: libglapi-mesa:i386 (!= 11.2.0-1ubuntu2) mas 17.0.1+git20170319+17.0.07adc57f-0ubuntu0ricotz~xenial está para ser instalado
libglapi-mesa:i386 : Quebra: libglapi-mesa (!= 17.0.1+git20170319+17.0.07adc57f-0ubuntu0ricotz~xenial) mas 11.2.0-1ubuntu2 está para ser instalado
libgles2-mesa : Depende: libglapi-mesa (= 17.0.1+git20170319+17.0.07adc57f-0ubuntu0ricotz~xenial) mas 11.2.0-1ubuntu2 está para ser instalado
vlc : Depende: vlc-nox (= 2.2.2-5ubuntu0.16.04.1) but will not be installed
Depende: libgles1-mesa (>= 7.8.1) mas não será instalado ou
libgles1
Depende: libsdl-image1.2 (>= 1.2.10) mas não será instalado
Depende: libva-drm1 (>= 1.1.0) mas não será instalado
Depende: libva-x11-1 (>= 1.0.3) mas não será instalado
Depende: libvlccore8 (>= 2.2.0) mas não será instalado
Recommends: vlc-plugin-notify (= 2.2.2-5ubuntu0.16.04.1) mas não será instalado
Recomenda: vlc-plugin-samba (= 2.2.2-5ubuntu0.16.04.1) mas não será instalado
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
sudo apt-get -f install
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
Correcting dependencies... failed.
Os pacotes a seguir têm dependências desencontradas:
libgl1-mesa-glx : Depende: libglapi-mesa (= 17.0.1+git20170319+17.0.07adc57f-0ubuntu0ricotz~xenial) mas 11.2.0-1ubuntu2 está instalado
libglapi-mesa : Quebra: libglapi-mesa:i386 (!= 11.2.0-1ubuntu2) mas 17.0.1+git20170319+17.0.07adc57f-0ubuntu0ricotz~xenial está instalado
libglapi-mesa:i386 : Quebra: libglapi-mesa (!= 17.0.1+git20170319+17.0.07adc57f-0ubuntu0ricotz~xenial) mas 11.2.0-1ubuntu2 está instalado
libgles2-mesa : Depende: libglapi-mesa (= 17.0.1+git20170319+17.0.07adc57f-0ubuntu0ricotz~xenial) mas 11.2.0-1ubuntu2 está instalado
E: Erro, pkgProblemResolver::Resolve gerou falhas, isto pode ser causado por pacotes mantidos (hold).
E: Impossível corrigir dependências
cat /etc/apt/sources.list
deb http://security.ubuntu.com/ubuntu/ xenial-security main universe restricted
deb http://br.archive.ubuntu.com/ubuntu/ xenial-updates main universe restricted
deb http://br.archive.ubuntu.com/ubuntu/ xenial main universe restricted
If you need any information just ask me.
I can't format my notebook because I'll have a lot of problems again to install and configure Android Studio, Java, Netbeans, Vagrant, Composer, Git, VirtualBox, Astah, and a lot of other softwares.
Thanks guys!
Then you can try again with a fresh start without having to reinstall and lose your programs every time.
PS: i think more people will be inclined to help if you post english error messages
– Frederik Baetens Apr 05 '17 at 20:08