LINUX.ORG.RU

Проблемы с libgl1-mesa-dri:i386 libglx-mesa0:i386

 , ,


0

1

Когда я пытаюсь использовать apt, у меня эта ошибка :

~# apt install nodejs
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libgl1-mesa-dri : Depends: libglapi-mesa (= 22.0.5-0ubuntu0.1) but 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 is to be installed
                   Breaks: libgl1-mesa-dri:i386 (!= 22.0.5-0ubuntu0.1) but 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 is to be installed
 libgl1-mesa-dri:i386 : Breaks: libgl1-mesa-dri (!= 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1) but 22.0.5-0ubuntu0.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

dpkg –configure –pending показывает :

~# dpkg --configure --pending
dpkg: error processing package libgl1-mesa-dri:i386 (--configure):
 package libgl1-mesa-dri:i386 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 cannot be configured because libgl1-mesa-dri:amd64 is at a different version (22.0.5-0ubuntu0.1)
dpkg: dependency problems prevent configuration of libglx-mesa0:i386:
 libglx-mesa0:i386 depends on libgl1-mesa-dri; however:
  Package libgl1-mesa-dri:i386 is not configured yet.

dpkg: error processing package libglx-mesa0:i386 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libgl1-mesa-dri:i386
 libglx-mesa0:i386

И когда я использую apt –fix broken install я вижу это :

apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libc-ares2 libgl1-amber-dri libllvm13 libllvm13:i386 libnode72
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libgl1-mesa-dri
The following packages will be upgraded:
  libgl1-mesa-dri
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7 888 kB of archives.
After this operation, 393 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 241868 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (22.2.0+git2210042354.d4d47ef6efa~j~mesarc1) over (22.0.5-0ubuntu0.1) ...
dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/dri/i915_dri.so', which is also in package libgl1-amber-dri:amd64 21.3.7-0ubuntu1
Errors were encountered while processing:
 /var/cache/apt/archives/libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt list -i | grep libgl1* показывает :

sudo apt list -i | grep libgl1*

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libgl1-amber-dri/jammy,now 21.3.7-0ubuntu1 amd64 [installed,automatic]
libgl1-mesa-dri/jammy-updates,now 22.0.5-0ubuntu0.1 amd64 [installed,upgradable to: 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1]
libgl1-mesa-dri/jammy,now 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 i386 [installed]
libgl1-mesa-glx/jammy,now 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 amd64 [installed,automatic]
libgl1/jammy,now 1.4.0-1 amd64 [installed]
libgl1/jammy,now 1.4.0-1 i386 [installed]
libglade2-0/jammy,now 1:2.6.4-2.4 amd64 [installed,automatic]
libglapi-mesa/jammy,now 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 amd64 [installed,automatic]
libglapi-mesa/jammy,now 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 i386 [installed,automatic]
libgles2/jammy,now 1.4.0-1 amd64 [installed,automatic]
libglib2.0-0/jammy,now 2.72.1-1 amd64 [installed,automatic]
libglib2.0-0/jammy,now 2.72.1-1 i386 [installed,automatic]
libglib2.0-bin/jammy,now 2.72.1-1 amd64 [installed,automatic]
libglib2.0-data/jammy,jammy,now 2.72.1-1 all [installed,automatic]
libglu1-mesa/jammy,now 9.0.2-1 amd64 [installed,automatic]
libglvnd0/jammy,now 1.4.0-1 amd64 [installed,automatic]
libglvnd0/jammy,now 1.4.0-1 i386 [installed,automatic]
libglx-mesa0/jammy,now 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 amd64 [installed,automatic]
libglx-mesa0/jammy,now 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 i386 [installed,automatic]
libglx0/jammy,now 1.4.0-1 amd64 [installed,automatic]
libglx0/jammy,now 1.4.0-1 i386 [installed,automatic]

sudo apt remove libgl1-mesa-dri:i386 показывает :

sudo apt remove libgl1-mesa-dri:i386
[sudo] password for borys: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libgl1-mesa-dri : Depends: libglapi-mesa (= 22.0.5-0ubuntu0.1) but 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 is to be installed
 libglx-mesa0:i386 : Depends: libgl1-mesa-dri:i386 but it is not going to be installed
 steam-libs-i386:i386 : Depends: libgl1-mesa-dri:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
borys@boryslinux:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libc-ares2 libgl1-amber-dri libllvm13 libllvm13:i386 libnode72
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libgl1-mesa-dri
The following packages will be upgraded:
  libgl1-mesa-dri
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7 888 kB of archives.
After this operation, 393 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 241868 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (22.2.0+git2210042354.d4d47ef6efa~j~mesarc1) over (22.0.5-0ubuntu0.1) ...
dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/dri/i915_dri.so', which is also in package libgl1-amber-dri:amd64 21.3.7-0ubuntu1
Errors were encountered while processing:
 /var/cache/apt/archives/libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

cat /etc/apt/sources.list показывает :

cat /etc/apt/sources.list
# deb cdrom:[Kubuntu 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809.1)]/ jammy main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ua.archive.ubuntu.com/ubuntu/ jammy main restricted
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ua.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ua.archive.ubuntu.com/ubuntu/ jammy universe
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy universe
deb http://ua.archive.ubuntu.com/ubuntu/ jammy-updates universe
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ua.archive.ubuntu.com/ubuntu/ jammy multiverse
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://ua.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ua.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

Я не скачивал вручную драйвера на видеокарту. Так в чем же проблема, и как я могу её устранить не переустанавливая систему? Я использую Kubuntu 20.04. У меня все меньше и меньше желания использовать линукс, когда выскакивает эта ошибка… Мне обещали свободу действий, а на самом деле у меня все ломается при установке какой-то программы. Возможно, проблема в моей материнской плате GA 970A-DS3P?



Последнее исправление: euty (всего исправлений: 1)

Мне обещали свободу действий, а на самом деле…

…это и есть свобода. А ты, как бестолковый пудель без намордника, норовишь всякую гадость в рот засунуть.

использую Kubuntu 20.04

А какого черта репозитории «jammy».

«Сломанные пакеты», пока не починишь, не установишь ничего. Добрая половина форума этим исписана.

andytux ★★★★★
()
Ответ на: комментарий от kostik87

По вашему я это не делал?

sudo apt update
[sudo] password for borys: 
Hit:1 http://ua.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://ua.archive.ubuntu.com/ubuntu jammy-updates InRelease                                            
Hit:3 http://ua.archive.ubuntu.com/ubuntu jammy-backports InRelease                                          
Hit:4 https://deb.nodesource.com/node_18.x jammy InRelease                                                   
Hit:5 https://repo.steampowered.com/steam stable InRelease                                                   
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease                                             
Hit:7 https://dl.google.com/linux/chrome/deb stable InRelease                                          
Hit:8 https://ppa.launchpadcontent.net/ernstp/mesarc/ubuntu jammy InRelease
Hit:9 https://ppa.launchpadcontent.net/kelebek333/kablosuz/ubuntu jammy InRelease
Hit:10 https://ppa.launchpadcontent.net/ztefn/haguichi-stable/ubuntu jammy InRelease
Reading package lists... Done                              
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
borys@boryslinux:~$ apt -f install
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
borys@boryslinux:~$ sudo apt -f install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libc-ares2 libgl1-amber-dri libllvm13 libllvm13:i386 libnode72
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libgl1-mesa-dri
The following packages will be upgraded:
  libgl1-mesa-dri
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7 888 kB of archives.
After this operation, 393 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 241868 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (22.2.0+git2210042354.d4d47ef6efa~j~mesarc1) over (22.0.5-0ubuntu0.1) ...
dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/dri/i915_dri.so', which is also in package libgl1-amber-dri:amd64 21.3.7-0ubuntu1
Errors were encountered while processing:
 /var/cache/apt/archives/libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
euty
() автор топика

Ну так сделайте то, о чем вас просит apt.

# apt autoremove

Это удалит пакет, который вызывает конфликт.

Выхлоп апта очень подробный, если его прочитать, многое прояснится

utanho ★★★★★
()
Ответ на: комментарий от euty
borys@boryslinux:~$ apt -f install
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)

Закрой графические приложения, которые блокируют базу пакетов.

apt -f install

От имени root или через sudo.

Включай голову уже, разжёвывать всё тебе здесь не будут.

Покажи какие репозитории у тебя подключены в /etc/apt/sources.list и /etc/apt/sources.list.d

cat /etc/apt/sources.list
cat /etc/apt/sources.list.d/*
kostik87 ★★★★★
()
Последнее исправление: kostik87 (всего исправлений: 2)
Ответ на: комментарий от kostik87

Вывод cat /etc/apt/sources.list :

cat /etc/apt/sources.list
# deb cdrom:[Kubuntu 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809.1)]/ jammy main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ua.archive.ubuntu.com/ubuntu/ jammy main restricted
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ua.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ua.archive.ubuntu.com/ubuntu/ jammy universe
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy universe
deb http://ua.archive.ubuntu.com/ubuntu/ jammy-updates universe
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ua.archive.ubuntu.com/ubuntu/ jammy multiverse
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://ua.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ua.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

Вывод cat /etc/apt/sources.list.d/* :

cat /etc/apt/sources.list.d/*
deb https://ppa.launchpadcontent.net/ernstp/mesarc/ubuntu/ jammy main
# deb-src https://ppa.launchpadcontent.net/ernstp/mesarc/ubuntu/ jammy main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
deb https://ppa.launchpadcontent.net/kelebek333/kablosuz/ubuntu/ jammy main
# deb-src https://ppa.launchpadcontent.net/kelebek333/kablosuz/ubuntu/ jammy main
deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x jammy main
deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x jammy main
deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
deb-src [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam

# Uncomment these lines to try the beta version of the Steam launcher
# deb [arch=amd64,i386] https://repo.steampowered.com/steam/ beta steam
# deb-src [arch=amd64,i386] https://repo.steampowered.com/steam/ beta steam
deb https://ppa.launchpadcontent.net/ztefn/haguichi-stable/ubuntu/ jammy main
# deb-src https://ppa.launchpadcontent.net/ztefn/haguichi-stable/ubuntu/ jammy main

Я не могу просто взять и «включить голову», я на линуксе всего неделю, и уже повстречался с тонной проблем, одна из которых - то что моя материнская плата, оказывается, без изменений в грубе не будет нормально работать с линуксом.

euty
() автор топика
Ответ на: комментарий от kostik87

Из графических приложений был запущен только Kate (Текстовый редактор) Что мне дает apt -f install, apt –fix-broken-install и apt autoremove :

sudo apt update
[sudo] password for borys: 
Hit:1 http://ua.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://ua.archive.ubuntu.com/ubuntu jammy-updates InRelease                              
Hit:3 http://ua.archive.ubuntu.com/ubuntu jammy-backports InRelease                            
Hit:4 https://repo.steampowered.com/steam stable InRelease                                     
Hit:5 https://dl.google.com/linux/chrome/deb stable InRelease                                  
Hit:6 https://deb.nodesource.com/node_18.x jammy InRelease                                     
Get:7 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]                      
Hit:8 https://ppa.launchpadcontent.net/ernstp/mesarc/ubuntu jammy InRelease                  
Hit:9 https://ppa.launchpadcontent.net/kelebek333/kablosuz/ubuntu jammy InRelease           
Hit:10 https://ppa.launchpadcontent.net/ztefn/haguichi-stable/ubuntu jammy InRelease        
Fetched 110 kB in 2s (48,1 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
borys@boryslinux:~$ sudo apt -f install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libc-ares2 libgl1-amber-dri libllvm13 libllvm13:i386 libnode72
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libgl1-mesa-dri
The following packages will be upgraded:
  libgl1-mesa-dri
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7 888 kB of archives.
After this operation, 393 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 241868 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (22.2.0+git2210042354.d4d47ef6efa~j~mesarc1) over (22.0.5-0ubuntu0.1) ...
dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/dri/i915_dri.so', which is also in package libgl1-amber-dri:amd64 21.3.7-0ubuntu1
Errors were encountered while processing:
 /var/cache/apt/archives/libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
borys@boryslinux:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libgl1-mesa-dri : Depends: libglapi-mesa (= 22.0.5-0ubuntu0.1) but 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 is installed
                   Breaks: libgl1-mesa-dri:i386 (!= 22.0.5-0ubuntu0.1) but 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 is installed
 libgl1-mesa-dri:i386 : Breaks: libgl1-mesa-dri (!= 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1) but 22.0.5-0ubuntu0.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
borys@boryslinux:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libc-ares2 libgl1-amber-dri libllvm13 libllvm13:i386 libnode72
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libgl1-mesa-dri
The following packages will be upgraded:
  libgl1-mesa-dri
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7 888 kB of archives.
After this operation, 393 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 241868 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (22.2.0+git2210042354.d4d47ef6efa~j~mesarc1) over (22.0.5-0ubuntu0.1) ...
dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/dri/i915_dri.so', which is also in package libgl1-amber-dri:amd64 21.3.7-0ubuntu1
Errors were encountered while processing:
 /var/cache/apt/archives/libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
borys@boryslinux:~$ 

euty
() автор топика

Я не скачивал вручную драйвера на видеокарту. Так в чем же проблема, и как я могу её устранить не переустанавливая систему? Я использую Kubuntu 20.04. У меня все меньше и меньше желания использовать линукс, когда выскакивает эта ошибка… Мне обещали свободу действий, а на самом деле у меня все ломается при установке какой-то программы.

Ну да, «оно само». А вот эта версия системной библиотеки mesa откуда взялась?

22.2.0+git2210042354.d4d47ef6efa~j~mesarc1

Rootlexx ★★★★★
()
Ответ на: комментарий от Rootlexx

Я уверен в том что я не скачивал драйвера на видеокарту, так как эта проблему же возникала после того как я устанавливал их вручную, и я уже понимаю что кубунту сам их ставит. из последних программ я устанавливал только Oracle Virtual Box, NodeJS и droidcam

euty
() автор топика
Ответ на: комментарий от kostik87

Я не могу удалить этот пакет, всё что связано с apt не работает :

sudo apt remove libgl1-amber-dri
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libgl1-mesa-dri : Depends: libglapi-mesa (= 22.0.5-0ubuntu0.1) but 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 is to be installed
                   Recommends: libgl1-amber-dri but it is not going to be installed
                   Breaks: libgl1-mesa-dri:i386 (!= 22.0.5-0ubuntu0.1) but 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 is to be installed
 libgl1-mesa-dri:i386 : Breaks: libgl1-mesa-dri (!= 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1) but 22.0.5-0ubuntu0.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
borys@boryslinux:~$ sudo apt autoclean && sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libgl1-mesa-dri : Depends: libglapi-mesa (= 22.0.5-0ubuntu0.1) but 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 is installed
                   Breaks: libgl1-mesa-dri:i386 (!= 22.0.5-0ubuntu0.1) but 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1 is installed
 libgl1-mesa-dri:i386 : Breaks: libgl1-mesa-dri (!= 22.2.0+git2210042354.d4d47ef6efa~j~mesarc1) but 22.0.5-0ubuntu0.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
borys@boryslinux:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libc-ares2 libgl1-amber-dri libllvm13 libllvm13:i386 libnode72
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libgl1-mesa-dri
The following packages will be upgraded:
  libgl1-mesa-dri
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7 888 kB of archives.
After this operation, 393 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 241868 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (22.2.0+git2210042354.d4d47ef6efa~j~mesarc1) over (22.0.5-0ubuntu0.1) ...
dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/dri/i915_dri.so', which is also in package libgl1-amber-dri:amd64 21.3.7-0ubuntu1
Errors were encountered while processing:
 /var/cache/apt/archives/libgl1-mesa-dri_22.2.0+git2210042354.d4d47ef6efa~j~mesarc1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

euty
() автор топика
Ответ на: комментарий от euty

sudo dpkg –remove –force-remove-reinstreq libgl1-amber-dri вроде бы улучшило положение, я даже смог удалить Nodejs, что раньше сделать не смог.


sudo dpkg --remove --force-remove-reinstreq libgl1-amber-dri
(Reading database ... 241868 files and directories currently installed.)
Removing libgl1-amber-dri:amd64 (21.3.7-0ubuntu1) ...

Что мне теперь делать, и что делать что бы ошибки не повторилось?

euty
() автор топика
Ответ на: комментарий от euty

Ну кто-то же подключил этот репозиторий:

deb https://ppa.launchpadcontent.net/ernstp/mesarc/ubuntu/ jammy main

Оттуда вам и прилетела новая версия mesa, которая оказалась несовместима с текущей установленной у вас системой.

Rootlexx ★★★★★
()
Ответ на: комментарий от Rootlexx

Я уже удалил mesa, после команды sudo dpkg --remove --force-remove-reinstreq libgl1-amber-dri заработал apt, и я смог наконец-то удалить это. Скажите пожалуйста, как скачать нужную мне версию?

euty
() автор топика
Ответ на: комментарий от Rootlexx

У меня есть предположение, могло ли это проихойти если я скачивал NodeJS через curl? Выглядело это примерно так :

sudo apt-get install curl 
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - 
sudo apt-get install nodejs
euty
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.