انجمنهای فارسی اوبونتو
تازه کار => انجمن تازهکاران => نویسنده: esmaeelE در 02 دی 1397، 01:50 قظ
-
در حین نصب vlc خطای زیر رخ میدهد
sudo apt install vlc
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:
vlc : Depends: libgles1-mesa (>= 7.8.1) but it is not going to be installed or
libgles1
Depends: libgles2-mesa (>= 7.8.1) but it is not going to be installed or
libgles2
E: Unable to correct problems, you have held broken packages.
-
این دستورات رو امتحان کنید:
sudo apt-get update --fix-missing
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt install vlc
-
خروجی دستورات
sudo apt-get update --fix-missing
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://archive.canonical.com/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/webupd8team/tor-browser/ubuntu xenial InRelease
Reading package lists... Done
دستور بعدی بدون خروجی است.
sudo dpkg --configure -a
sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
udo apt install vlc
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:
vlc : Depends: libgles1-mesa (>= 7.8.1) but it is not going to be installed or
libgles1
Depends: libgles2-mesa (>= 7.8.1) but it is not going to be installed or
libgles2
E: Unable to correct problems, you have held broken packages.
-
میتونین سعی کنین بستههایی که نام برده رو جداگانه نصب کنین:
sudo apt install libgles1-mesa
sudo apt install libgles2-mesa
همچنین این تاپیک (https://askubuntu.com/a/557636) که راه حلش کمی عجیب هم هست، میگه با عوض کردن آینه مشکل حل شده :o
به هر حال بد نیست این راه حل رو هم امتحان کنین. توصیهی من استفاده از آینههای آمریکا (http://us.archive.ubuntu.com/) یا بریتانیا (http://uk.archive.ubuntu.com/) هست که آدرس هر کدوم رو روی اسم خودشون لینک کردم و میتونین یکیشو توی فایل:
/etc/apt/sources.list
با آینهی فعلیتون جایگزینش کنین و بعدش مخازنتون رو آپدیت کنین.
-
هیچ کدام از راه ها نتیجه بخش نبود.
نصب تک تک پکیج ها
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 (= 11.2.0-1ubuntu2) but 12.0.6-0ubuntu0.16.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
sudo apt-get install libglapi-mesa
Reading package lists... Done
Building dependency tree
Reading state information... Done
libglapi-mesa is already the newest version (12.0.6-0ubuntu0.16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
-
بازگرداندن پکیج ها به نسخه قبل downgrade به روش زیر مشکل را حل کرد.
sudo apt install aptitude
بعد از نصب aptitude توسط آن اقدام به نصب vlc می کنیم.
sudo aptitude install vlc
The following NEW packages will be installed:
libgles1-mesa{ab} libgles2-mesa{ab} libqt5x11extras5{a}
libsdl-image1.2{a} libva-drm1{a} libva-x11-1{a} libxcb-composite0{a}
libxcb-xv0{a} vlc vlc-plugin-notify{a} vlc-plugin-samba{a}
0 packages upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,543 kB/1,615 kB of archives. After unpacking 5,264 kB will be used.
The following packages have unmet dependencies:
libgles2-mesa : Depends: libglapi-mesa (= 11.2.0-1ubuntu2) but 12.0.6-0ubuntu0.16.04.1 is installed.
libgles1-mesa : Depends: libglapi-mesa (= 11.2.0-1ubuntu2) but 12.0.6-0ubuntu0.16.04.1 is installed.
open: 38; closed: 663; defer: 11; conflict: 19 .The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libgles1-mesa [Not Installed]
2) libgles2-mesa [Not Installed]
3) vlc [Not Installed]
Accept this solution? [Y/n/q/?] n
در این مرحله باید n را انتخاب کنیم تا بسته ها دست نخورده باقی نماند.
و به این ترتیب downgrade بسته ها شروع می شود.
open: 87; closed: 1555; defer: 32; conflict: 52 oThe following actions will resolve these dependencies:
Downgrade the following packages:
1) libgl1-mesa-glx [12.0.6-0ubuntu0.16.04.1 (now) -> 11.2.0-1ubuntu2 (xenial
2) libglapi-mesa [12.0.6-0ubuntu0.16.04.1 (now) -> 11.2.0-1ubuntu2 (xenial)]
Accept this solution? [Y/n/q/?] y
در ادامه هم یکبار y را انتخاب می کنیم و vlc نصب می شود. ;D
منبع: https://ubuntuforums.org/showthread.php?t=2367538 (https://ubuntuforums.org/showthread.php?t=2367538)