Giter Site home page Giter Site logo

Comments (3)

JohnDumpling avatar JohnDumpling commented on August 16, 2024

I have the same issue and I'm unable to install the 28 updates that are waiting in the AppCenter.
Error log:

The following packages have unmet dependencies:
  linux-modules-nvidia-470-5.11.0-34-generic: Depends on: nvidia-kernel-common-470 (<= 470.63.01-1) but 470.74-0ubuntu0.20.04.1 is to be installed
  linux-modules-nvidia-470-5.11.0-36-generic: Depends on: nvidia-kernel-common-470 (<= 470.63.01-1) but 470.74-0ubuntu0.20.04.1 is to be installed
  linux-modules-nvidia-470-5.11.0-37-generic: Depends on: nvidia-kernel-common-470 (<= 470.63.01-1) but 470.74-0ubuntu0.20.04.1 is to be installed

image

from settings-daemon.

eliocamp avatar eliocamp commented on August 16, 2024

I think I might be encountering the same issue. Can't update with message:

The following packages have unmet dependencies:
  linux-modules-nvidia-495-5.13.0-28-generic: Depends: linux-signatures-nvidia-5.13.0-28-generic (= 5.13.0-28.31~20.04.1+1) but 5.13.0-28.31~20.04.1+2 is to be installed
                                              Depends: nvidia-kernel-common-495 (<= 495.46-1) but 510.47.03-0ubuntu0.20.04.1 is to be installed

from settings-daemon.

arhant01 avatar arhant01 commented on August 16, 2024

Solution: Edit: Finally was able to solve the issue with "sudo apt-get install -f" option thanks to this discussion: https://askubuntu.com/questions/131449/remove-unmet-dependencies-error

Problem: When trying to install updates from the AppCenter, one OS update is not getting installed and I get the following error popup. Also was unable to install new packages using terminal...

=====GUI=====
Failed to update “Operating System Updates”
This may have been caused by external or manually compiled software.

Error while installing package: trying to overwrite '/usr/share/metainfo/granite.appdata.xml', which is also in package libgranite-common 6.2.0+r2223+pkg122~ubuntu6.1
=====GUI=====

Also see the Terminal sequence of error faced on the same issue:

=====Terminal=====
$ sudo apt install gdebi
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:
elementary-tweaks : Depends: libgranite5 (>= 0.2.0) but it is not going to be installed
gdebi : Depends: gdebi-core (= 0.9.5.7+nmu3) but it is not going to be installed
Recommends: libgtk2-perl but it is not going to be installed
Recommends: lintian but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libgranite5
The following NEW packages will be installed:
libgranite5
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/167 kB of archives.
After this operation, 650 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 134543 files and directories currently installed.)
Preparing to unpack .../libgranite5_5.3.0-1_amd64.deb ...
Unpacking libgranite5:amd64 (5.3.0-1) ...
dpkg: error processing archive /var/cache/apt/archives/libgranite5_5.3.0-1_amd64.de
b (--unpack):
trying to overwrite '/usr/share/metainfo/granite.appdata.xml', which is also in pa
ckage libgranite-common 6.2.0+r2223+pkg122~ubuntu6.1
Errors were encountered while processing:
/var/cache/apt/archives/libgranite5_5.3.0-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
=====Terminal=====

I have tried to rename both the below files by running explorer equivalent in admin mode and adding a suffix " old" to force unlock / refresh but I continue to get the same error:
/usr/share/metainfo/granite.appdata old.xml
/usr/share/metainfo/libgranite5_5.3.0-1_amd64 old.deb

This issue is persisting across multiple restarts. I will try booting into recovery mode by pressing the shift or esc keys as suggested in https://www.maketecheasier.com/boot-recovery-mode-ubuntu/ and retry under dpkg option....

Edit: Finally was able to solve the issue with "sudo apt-get install -f" option thanks to this discussion: https://askubuntu.com/questions/131449/remove-unmet-dependencies-error

Cheers.

from settings-daemon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.