Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to update "Operating System Updates" #105

Open
faiz-crypto opened this issue Sep 5, 2021 · 3 comments
Open

Failed to update "Operating System Updates" #105

faiz-crypto opened this issue Sep 5, 2021 · 3 comments

Comments

@faiz-crypto
Copy link

What Happened

When I do Operating System Updates from the App center then I get an error.
"This may be caused by external or manually compiled software"
image

Expected Behavior

Operating System Updates should complete

Steps to Reproduce

Just click Operating System Updates

Logs

Platform Information

image

@JohnDumpling
Copy link
Contributor

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

@eliocamp
Copy link

eliocamp commented Feb 7, 2022

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

@arhant01
Copy link

arhant01 commented Jun 11, 2022

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.

@danirabbit danirabbit transferred this issue from elementary/appcenter Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants