PDA

View Full Version : dpkg: error processing archive /var/cache/apt/locales



android4682
October 8th, 2015, 12:29 PM
What ever I try to install I get this error message:



Reading package lists... DoneBuilding dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:

{A lot of packages with depends errors}

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


And when I do

root@localhost:~# apt-get -f install

I get this:


Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
locales
The following packages will be upgraded:
locales
1 upgraded, 0 newly installed, 0 to remove and 1260 not upgraded.
3 not fully installed or removed.
Need to get 0 B/3,924 kB of archives.
After this operation, 6,904 kB of additional disk space will be used.
Do you want to continue? [Y/n] ^C
root@localhost:/home/droid443/Downloads/git# cd ~
root@localhost:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
locales
The following packages will be upgraded:
locales
1 upgraded, 0 newly installed, 0 to remove and 1260 not upgraded.
3 not fully installed or removed.
Need to get 0 B/3,924 kB of archives.
After this operation, 6,904 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 190368 files and directories currently installed.)
Preparing to unpack .../locales_2.19-18_all.deb ...
Unpacking locales (2.19-18) over (2.13+git20120306-12.1) ...
dpkg: error processing archive /var/cache/apt/archives/locales_2.19-18_all.deb (--unpack):
trying to overwrite '/usr/sbin/validlocale', which is also in package libc-bin 2.19-0ubuntu6.6
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/locales_2.19-18_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


So what can I do to fix this?

I'm running Ubuntu 14.04 LTS 64-bit (Server) with GNOME.

v3.xx
October 8th, 2015, 03:22 PM
Try cleaning the cache.


sudo apt-get clean && sudo apt-get update

android4682
October 8th, 2015, 03:52 PM
Try cleaning the cache.


sudo apt-get clean && sudo apt-get update

Already tried, I tried again but still the same error.

v3.xx
October 8th, 2015, 11:15 PM
Is this a possibility?

http://askubuntu.com/questions/573720/ubuntu-14-04-server-upgrade-error

locales_2.19-18_all.deb (https://www.google.com/search?client=ubuntu&channel=fs&q=locales_2.19-18_all.deb&ie=utf-8&oe=utf-8)

Bashing-om
October 8th, 2015, 11:45 PM
android4682; Yukkie poo ...

@ v3.xx :)
We meet again ole buddy .

Has this system ever seen an update ?


1 upgraded, 0 newly installed, 0 to remove and 1260 not upgraded.

Try and see what results:


sudo apt update
sudo apt full-upgrade


As a 1st approximation to get to the bull's eye.

Depending on what the package manager advises is what is to be done next.



a happy package manager



is a happy system

v3.xx
October 8th, 2015, 11:48 PM
Nice catch Bashing, missed that.

Bashing-om
October 9th, 2015, 12:23 AM
Nice catch Bashing, missed that.

Hey, and extra set of eyes can be a good thing .. look at all the times you have seen where I did not.



just goes to prove



we are all in this together