Hi Guys, i am encountering libegl-mesa0:armhf dependency error
see below script
"
~$ sudo apt-get install nano
[sudo] password for guowei:
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
libegl1:armhf : Depends: libegl-mesa0:armhf but it is not going to be installed
"
Anyone knows how i can proceed?
1 Like
Hi du.guowei,
Please try below commands:
sudo apt-get update
sudo apt --fix-broken install
sudo apt-get install nano
Hi Carol,
I managed to rectify with the below steps. :
-
I followed this guide debian - apt-get error: trying to overwrite shared 'filename', which is different from other instances of package 'package' - Unix & Linux Stack Exchange
to replace the "50_mesa.json"file in /usr/share/glvnd/egl_vendor.d to “50_mesa.json.backup”
-
I downloaded “[mesa_18.3.6.orig.tar.gz]” file from Debian -- Details of package libegl-mesa0 in buster
-
~/Downloads$ tar -xzf mesa_18.3.6.orig.tar.gz
-
~/Downloads/mesa-18.3.6$ ./configure
-
~/Downloads/mesa-18.3.6$ sudo apt-get -f install
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
apt-clone archdetect-deb bogl-bterm busybox-static cryptsetup-bin
dpkg-repack gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common
iio-sensor-proxy:armhf kde-window-manager kinit kio kpackagetool5
kwayland-data kwin-common kwin-data kwin-x11 libavahi-glib1:armhf
libdebian-installer4 libkdecorations2-5v5 libkdecorations2private5v5
libkf5activities5 libkf5attica5 libkf5completion-data libkf5completion5
libkf5declarative-data libkf5declarative5 libkf5doctools5
libkf5globalaccel-data libkf5globalaccel5 libkf5globalaccelprivate5
libkf5idletime5 libkf5jobwidgets-data libkf5jobwidgets5 libkf5kcmutils-data
libkf5kcmutils5 libkf5kiocore5 libkf5kiontlm5 libkf5kiowidgets5
libkf5newstuff-data libkf5newstuff5 libkf5newstuffcore5 libkf5package-data
libkf5package5 libkf5plasma5 libkf5quickaddons5 libkf5solid5
libkf5solid5-data libkf5sonnet5-data libkf5sonnetcore5 libkf5sonnetui5
libkf5textwidgets-data libkf5textwidgets5 libkf5waylandclient5
libkf5waylandserver5 libkf5xmlgui-bin libkf5xmlgui-data libkf5xmlgui5
libkscreenlocker5 libkwin4-effect-builtins1 libkwineffects11
libkwinglutils11 libkwinxrenderutils11 libmbim-glib4 libmbim-glib4:armhf
libmbim-proxy libmm-glib0:armhf libpolkit-gobject-1-0:armhf libqgsttools-p1
libqmi-glib5 libqmi-glib5:armhf libqmi-proxy libqt5multimedia5
libqt5multimedia5-plugins libqt5multimediaquick-p5 libqt5multimediawidgets5
libxcb-composite0 libxcb-cursor0 libxcb-damage0 modemmanager:armhf os-prober
python3-dbus.mainloop.pyqt5 python3-icu python3-pam python3-pyqt5
python3-pyqt5.qtsvg python3-pyqt5.qtwebkit python3-sip
qml-module-org-kde-kquickcontrolsaddons qml-module-qtmultimedia
qml-module-qtquick2 rdate tasksel tasksel-data usb-modeswitch
usb-modeswitch-data
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
168 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up libxi6:armhf (2:1.7.9-1) …
Setting up libedit2:armhf (3.1-20170329-1) …
Setting up libbrotli1:armhf (1.0.3-1ubuntu1.2) …
Setting up libxcb-xinerama0:armhf (1.13-2~ubuntu18.04) …
Setting up libxcb-present0:armhf (1.13-2~ubuntu18.04) …
Setting up libglvnd0:armhf (1.0.0-2ubuntu2.3) …
Setting up libunistring2:armhf (0.9.9-0ubuntu2) …
Setting up libnettle6:armhf (3.4-1) …
Setting up libxinerama1:armhf (2:1.1.3-1) …
Setting up libxcb-dri2-0:armhf (1.13-2~ubuntu18.04) …
Setting up libxcb-dri3-0:armhf (1.13-2~ubuntu18.04) …
Setting up libxcb-glx0:armhf (1.13-2~ubuntu18.04) …
Setting up libgles1:arm64 (1.0.0-2ubuntu2.3) …
Setting up libxcb-randr0:armhf (1.13-2~ubuntu18.04) …
Setting up libexpat1:armhf (2.2.5-3ubuntu0.2) …
Setting up libxcb-xfixes0:armhf (1.13-2~ubuntu18.04) …
Setting up libxcb-icccm4:armhf (0.4.1-1ubuntu1) …
Setting up libidn2-0:armhf (2.0.4-1.1build2) …
Setting up libxcb-render0:armhf (1.13-2~ubuntu18.04) …
Setting up libxdamage1:armhf (1:1.1.4-3) …
Setting up libxfixes3:armhf (1:5.0.3-1) …
Setting up libevdev2:armhf (1.5.8+dfsg-1) …
Setting up libpng16-16:armhf (1.6.34-1ubuntu0.18.04.2) …
Setting up liblcms2-2:armhf (2.9-1ubuntu0.1) …
Setting up libjbig0:armhf (2.1-3.1build1) …
Setting up libelf1:armhf (0.170-0.4ubuntu0.1) …
Setting up libxshmfence1:armhf (1.3-1) …
Setting up libcap2:armhf (1:2.25-1.2) …
Setting up libdatrie1:armhf (0.2.10-7) …
Setting up libjpeg-turbo8:armhf (1.5.2-0ubuntu5.18.04.1) …
Setting up libthai0:armhf (0.1.27-2) …
Setting up libglapi-mesa:armhf (19.0.8-0ubuntu0~18.04.3) …
Setting up libxcb-util1:armhf (0.4.0-0ubuntu3) …
Setting up libcdparanoia0:armhf (3.10.2+debian-13) …
Setting up libglvnd-dev:arm64 (1.0.0-2ubuntu2.3) …
Setting up libkrb5support0:armhf (1.16-2ubuntu0.1) …
Setting up libopus0:armhf (1.1.2-1ubuntu1) …
Setting up libfreetype6:armhf (2.8.1-2ubuntu2) …
Setting up libtasn1-6:armhf (4.13-2) …
Setting up libdrm2:armhf (2.4.97-1ubuntu1~18.04.1) …
Setting up libgraphite2-3:armhf (1.3.11-2) …
Setting up libxcb-sync1:armhf (1.13-2~ubuntu18.04) …
Setting up libogg0:armhf (1.3.2-1) …
Setting up libhyphen0:armhf (2.8.8-5) …
Setting up libx11-xcb1:armhf (2:1.6.4-3ubuntu0.2) …
Setting up libgmp10:armhf (2:6.1.2+dfsg-2) …
Setting up libpixman-1-0:armhf (0.34.0-2) …
Setting up libepoxy0:armhf (1.4.3-1) …
Setting up libssl1.1:armhf (1.1.1-1ubuntu2.1~18.04.4) …
Setting up libdrm-etnaviv1:armhf (2.4.97-1ubuntu1~18.04.1) …
Setting up libmtdev1:armhf (1.1.5-1ubuntu3) …
Setting up libsqlite3-0:armhf (3.22.0-1ubuntu0.1) …
Setting up libice6:armhf (2:1.0.9-2) …
Setting up libvisual-0.4-0:armhf (0.4.0-11) …
Setting up libxcomposite1:armhf (1:0.4.4-2) …
Setting up libxcb-shm0:armhf (1.13-2~ubuntu18.04) …
Setting up libxcb-shape0:armhf (1.13-2~ubuntu18.04) …
Setting up libxrender1:armhf (1:0.9.10-1) …
Setting up libsensors4:armhf (1:3.4.0-4) …
Setting up libgles2:armhf (1.0.0-2ubuntu2.3) …
Setting up libxkbcommon0:armhf (0.8.2-1~ubuntu18.04.1) …
Setting up libxcb-keysyms1:armhf (0.4.0-1) …
Setting up libstdc++6:armhf (8.3.0-6ubuntu1~18.04.1) …
Setting up libffi6:armhf (3.2.1-8) …
Setting up libdrm-radeon1:armhf (2.4.97-1ubuntu1~18.04.1) …
Setting up liborc-0.4-0:armhf (1:0.4.28-1) …
Setting up libxxf86vm1:armhf (1:1.1.4-1) …
Setting up libkeyutils1:armhf (1.5.9-9.2ubuntu2) …
Setting up libdrm-nouveau2:armhf (2.4.97-1ubuntu1~18.04.1) …
Setting up libvorbis0a:armhf (1.3.5-4.2) …
Setting up libwayland-egl1:armhf (1.16.0-1ubuntu1.1~18.04.1) …
Setting up libxrandr2:armhf (2:1.5.1-1) …
Setting up libdbus-1-3:armhf (1.12.2-1ubuntu1.1) …
Setting up libavahi-common-data:armhf (0.7-3.1ubuntu1.2) …
Setting up libwayland-server0:armhf (1.16.0-1ubuntu1.1~18.04.1) …
Setting up libwebp6:armhf (0.6.1-2) …
Setting up libjpeg8:armhf (8c-2ubuntu8) …
Setting up libxcb-xkb1:armhf (1.13-2~ubuntu18.04) …
Setting up libfontconfig1:armhf (2.12.6-0ubuntu2) …
Setting up libsm6:armhf (2:1.2.2-1) …
Setting up libxcb-render-util0:armhf (0.3.9-1) …
Setting up libk5crypto3:armhf (1.16-2ubuntu0.1) …
Setting up libicu60:armhf (60.2-3ubuntu3) …
Setting up libllvm8:armhf (1:8-3~ubuntu18.04.1) …
Setting up libxcb-image0:armhf (0.4.0-1build1) …
Setting up libdouble-conversion1:armhf (2.0.1-4ubuntu1) …
Setting up libwoff1:armhf (1.0.2-1build0.1) …
Setting up libdrm-amdgpu1:armhf (2.4.97-1ubuntu1~18.04.1) …
Setting up libglib2.0-0:armhf (2.56.4-0ubuntu0.18.04.4) …
Setting up libwayland-client0:armhf (1.16.0-1ubuntu1.1~18.04.1) …
Setting up libgbm1:armhf (19.0.8-0ubuntu0~18.04.3) …
Setting up libproxy1v5:armhf (0.4.15-1) …
Setting up libgl1-mesa-dri:armhf (19.0.8-0ubuntu0~18.04.3) …
Setting up libtiff5:armhf (4.0.9-5ubuntu0.3) …
Setting up libxkbcommon-x11-0:armhf (0.8.2-1~ubuntu18.04.1) …
Setting up libxml2:armhf (2.9.4+dfsg1-6.1ubuntu1.2) …
Setting up libhogweed4:armhf (3.4-1) …
Setting up libxslt1.1:armhf (1.1.29-5ubuntu0.2) …
Setting up libxcursor1:armhf (1:1.1.15-1) …
Setting up libp11-kit0:armhf (0.23.9-2) …
Setting up libkrb5-3:armhf (1.16-2ubuntu0.1) …
Setting up libegl-mesa0:armhf (19.0.8-0ubuntu0~18.04.3) …
Setting up libavahi-common3:armhf (0.7-3.1ubuntu1.2) …
Setting up libvorbisenc2:armhf (1.3.5-4.2) …
Setting up libwayland-cursor0:armhf (1.16.0-1ubuntu1.1~18.04.1) …
Setting up libglx-mesa0:armhf (19.0.8-0ubuntu0~18.04.3) …
Setting up libcairo2:armhf (1.15.10-2ubuntu0.1) …
Setting up libgnutls30:armhf (3.5.18-1ubuntu1.1) …
Setting up libgssapi-krb5-2:armhf (1.16-2ubuntu0.1) …
Setting up libegl1:armhf (1.0.0-2ubuntu2.3) …
Setting up libavahi-client3:armhf (0.7-3.1ubuntu1.2) …
Setting up libtheora0:armhf (1.1.1+dfsg.1-14) …
Setting up libglx0:armhf (1.0.0-2ubuntu2.3) …
Setting up libcups2:armhf (2.2.7-1ubuntu2.7) …
Setting up libgl1:armhf (1.0.0-2ubuntu2.3) …
Setting up libgl1-mesa-glx:armhf (19.0.8-0ubuntu0~18.04.3) …
Processing triggers for dbus (1.12.2-1ubuntu1.1) …
Processing triggers for hicolor-icon-theme (0.17-2) …
Processing triggers for mime-support (3.60ubuntu1) …
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) …
Processing triggers for libglib2.0-0:arm64 (2.56.4-0ubuntu0.18.04.4) …
Setting up libgdk-pixbuf2.0-0:armhf (2.36.11-2) …
Setting up libcairo-gobject2:armhf (1.15.10-2ubuntu0.1) …
Setting up libharfbuzz0b:armhf (1.7.2-1ubuntu1) …
Setting up libjson-glib-1.0-0:armhf (1.4.2-3) …
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Setting up libmm-glib0:armhf (1.10.0-1~ubuntu18.04.2) …
Setting up libatk1.0-0:armhf (2.28.1-1) …
Setting up glib-networking:armhf (2.56.0-1) …
Setting up libpango-1.0-0:armhf (1.40.14-1ubuntu0.1) …
Processing triggers for man-db (2.8.3-2ubuntu0.1) …
Setting up libgudev-1.0-0:armhf (1:232-2) …
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) …
Setting up libavahi-glib1:armhf (0.7-3.1ubuntu1.2) …
Setting up libcolord2:armhf (1.3.3-2build1) …
Setting up libpolkit-gobject-1-0:armhf (0.105-20ubuntu0.18.04.5) …
Setting up libqt5core5a:armhf (5.9.5+dfsg-0ubuntu2.3) …
Setting up libqt5dbus5:armhf (5.9.5+dfsg-0ubuntu2.3) …
Setting up libmbim-glib4:armhf (1.18.0-1~ubuntu18.04.1) …
Setting up libgstreamer1.0-0:armhf (1.14.5-0ubuntu1~18.04.1) …
Setcap worked! gst-ptp-helper is not suid!
Setting up libqt5network5:armhf (5.9.5+dfsg-0ubuntu2.3) …
Setting up libwacom2:armhf (0.29-1) …
Setting up iio-sensor-proxy:armhf (2.4-2) …
iio-sensor-proxy.service is a disabled or a static unit, not starting it.
Setting up libatspi2.0-0:armhf (2.28.0-1) …
Setting up libsoup2.4-1:armhf (2.62.1-1ubuntu0.4) …
Setting up libinput10:armhf (1.10.4-1ubuntu0.18.04.1) …
Setting up libsoup-gnome2.4-1:armhf (2.62.1-1ubuntu0.4) …
Setting up libqmi-glib5:armhf (1.22.0-1.2~ubuntu18.04.1) …
Setting up libpangoft2-1.0-0:armhf (1.40.14-1ubuntu0.1) …
Setting up libqt5positioning5:armhf (5.9.5+dfsg-0ubuntu2) …
Setting up libqt5gui5:armhf (5.9.5+dfsg-0ubuntu2.3) …
Setting up libatk-bridge2.0-0:armhf (2.26.2-1) …
Setting up librest-0.7-0:armhf (0.8.0-2) …
Setting up libqt5qml5:armhf (5.9.5-0ubuntu1.1) …
Setting up libqt5quick5:armhf (5.9.5-0ubuntu1.1) …
Setting up libgstreamer-plugins-base1.0-0:armhf (1.14.5-0ubuntu1~18.04.1) …
Setting up gstreamer1.0-plugins-base:armhf (1.14.5-0ubuntu1~18.04.1) …
Setting up libqt5sensors5:armhf (5.9.5-0ubuntu1) …
Setting up qml-module-qtquick2:armhf (5.9.5-0ubuntu1.1) …
Setting up libqt5x11extras5:armhf (5.9.5-0ubuntu1) …
Setting up libqt5widgets5:armhf (5.9.5+dfsg-0ubuntu2.3) …
Setting up qml-module-qtquick-layouts:armhf (5.9.5-0ubuntu1.1) …
Setting up modemmanager:armhf (1.10.0-1~ubuntu18.04.2) …
Setting up libpangocairo-1.0-0:armhf (1.40.14-1ubuntu0.1) …
Setting up libgtk-3-0:armhf (3.22.30-1ubuntu4) …
Setting up libqt5printsupport5:armhf (5.9.5+dfsg-0ubuntu2.3) …
Setting up qml-module-qtquick-privatewidgets:armhf (5.9.5-0ubuntu1) …
Setting up libqt5svg5:armhf (5.9.5-0ubuntu1) …
Setting up qml-module-qtquick-window2:armhf (5.9.5-0ubuntu1.1) …
Setting up qml-module-qtquick-dialogs:armhf (5.9.5-0ubuntu1) …
Setting up qt5-gtk-platformtheme:armhf (5.9.5+dfsg-0ubuntu2.3) …
Setting up libqt5webchannel5:armhf (5.9.5-0ubuntu1) …
Setting up libqt5webkit5:armhf (5.212.0~alpha2-7ubuntu1) …
Setting up qml-module-qtgraphicaleffects:armhf (5.9.5-0ubuntu1) …
Setting up qml-module-qtquick-controls:armhf (5.9.5-0ubuntu1) …
Setting up teamviewer-host:armhf (14.7.1965) …
Processing triggers for libc-bin (2.27-3ubuntu1) …
~/Downloads/mesa-18.3.6$ sudo apt-get install nano
Problem was rectified after.
I am still new to ubuntu and figuring out how packages work. Seems like there was a package conflict in one of the files. PLease share if you have a better to go about doing this!
Thanks
Hi du.guowei,
What’s JetPack version are you using?
Your request is need to install “nano”, right?
Try install below:
$ sudo apt-get install libegl-mesa0
$ sudo apt-get install nano
Hi, I am having the same error, I am running this on JetPack 4.4 R32.4.2
-desktop:~$ sudo apt-get install libegl-mesa0
Reading package lists… Done
Building dependency tree
Reading state information… Done
libegl-mesa0 is already the newest version (19.2.8-0ubuntu0~18.04.3).
libegl-mesa0 set to manually installed.
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
libegl1:armhf : Depends: libegl-mesa0:armhf but it is not going to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
-desktop:~$ sudo apt-get install nano
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
libegl1:armhf : Depends: libegl-mesa0:armhf but it is not going to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
-desktop:~$ sudo apt --fix-broken install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following packages were automatically installed and are no longer required:
iio-sensor-proxy:armhf libavahi-glib1:armhf libmbim-glib4
libmbim-glib4:armhf libmbim-proxy libmm-glib0:armhf
libpolkit-gobject-1-0:armhf libqmi-glib5 libqmi-glib5:armhf libqmi-proxy
modemmanager:armhf usb-modeswitch usb-modeswitch-data
Use ‘sudo apt autoremove’ to remove them.
The following additional packages will be installed:
libegl-mesa0:armhf
The following NEW packages will be installed:
libegl-mesa0:armhf
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
183 not fully installed or removed.
Need to get 0 B/76.6 kB of archives.
After this operation, 240 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
debconf: delaying package configuration, since apt-utils is not installed
(Reading database … 138736 files and directories currently installed.)
Preparing to unpack …/libegl-mesa0_19.2.8-0ubuntu0~18.04.3_armhf.deb …
Unpacking libegl-mesa0:armhf (19.2.8-0ubuntu0~18.04.3) …
dpkg: error processing archive /var/cache/apt/archives/libegl-mesa0_19.2.8-0ubuntu0~18.04.3_armhf.deb (–unpack):
trying to overwrite shared ‘/usr/share/glvnd/egl_vendor.d/50_mesa.json’, which is different from other instances of package libegl-mesa0:armhf
Errors were encountered while processing:
/var/cache/apt/archives/libegl-mesa0_19.2.8-0ubuntu0~18.04.3_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks for the help
I followed du.gowei, renamed the 50_mesa,json. file and was able to fix the problem.
desktop:/usr/share/glvnd/egl_vendor.d$ sudo mv 50_mesa.json 50_mesa-old.json
then ran fix install
-desktop:/usr/share/glvnd/egl_vendor.d$ sudo apt — fix-broken install
]
8 Likes
Thankyou so much, it works, you save my day
1 Like
It was the solution for me, thanks
1 Like
thank you!!! you very helped me!!!