Jump to content

Errors when Updating Dependencies Linux

[justin@Saber ~]$ sudo apt-get -f  install                                                                                                                                                                                             11:56:27
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:
  libpango1.0-0 libpangox-1.0-0 linux-headers-4.4.0-75 linux-headers-4.4.0-75-generic linux-image-4.4.0-75-generic linux-image-extra-4.4.0-75-generic linux-signed-image-4.4.0-75-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libgphoto2-port12
Suggested packages:
  gphoto2
The following NEW packages will be installed:
  libgphoto2-port12
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
96 not fully installed or removed.
Need to get 0 B/127 kB of archives.
After this operation, 492 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 316293 files and directories currently installed.)
Preparing to unpack .../libgphoto2-port12_2.5.14+201706130745~ubuntu16.04.1_amd64.deb ...
Unpacking libgphoto2-port12:amd64 (2.5.14+201706130745~ubuntu16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libgphoto2-port12_2.5.14+201706130745~ubuntu16.04.1_amd64.deb (--unpack):
 trying to overwrite shared '/usr/share/locale/sr/LC_MESSAGES/libgphoto2_port-12.mo', which is different from other instances of package libgphoto2-port12:amd64
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libgphoto2-port12_2.5.14+201706130745~ubuntu16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I've gotten this error after trying to do a dist-upgrade.  Apt-get -f install doesn't fix it as i was prompted by the system.  Does anyone know how I would fix this?  I have also tried some stackoverflow solutions that used dpkg.  I would appreciate any insights anyone has.

Link to comment
Share on other sites

Link to post
Share on other sites

Try 

 

sudo apt autoremove

Main Rig:-

Ryzen 7 3800X | Asus ROG Strix X570-F Gaming | 16GB Team Group Dark Pro 3600Mhz | Corsair MP600 1TB PCIe Gen 4 | Sapphire 5700 XT Pulse | Corsair H115i Platinum | WD Black 1TB | WD Green 4TB | EVGA SuperNOVA G3 650W | Asus TUF GT501 | Samsung C27HG70 1440p 144hz HDR FreeSync 2 | Ubuntu 20.04.2 LTS |

 

Server:-

Intel NUC running Server 2019 + Synology DSM218+ with 2 x 4TB Toshiba NAS Ready HDDs (RAID0)

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Master Disaster said:

Try 

 

 


sudo apt autoremove

 

I've tried that, as well as dpkg force overwrite and dpkg purge.  The former two gave errors, the latter removed the package but when I tried to reinstall it I had the error above again.

Link to comment
Share on other sites

Link to post
Share on other sites

You can probably delete, or mv that file out of the way.

Link to comment
Share on other sites

Link to post
Share on other sites

Do you have any other libgphoto2 packages installed? Do you have any PPAs that provide libgphoto2?

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×