Can't update Linux Mint 14

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
rindvor

Can't update Linux Mint 14

Post by rindvor »

Hello, guys!
I'm a real newbie when it comes to whole Linux world. I've been using ubuntu 12.04 / 12.10 for a month or two and after some strange errors I started using Mint and I have been really satisfied with it.
A week ago, I tried to update Linux Mint 14 using update manager app, as I do usually once a week, but this time an error showed up:
E: apt: subprocess installed post-installation script returned error exit status 1
This is what I got in terminal (when I clicked on "details" in error message window):

Code: Select all

Setting up apt (0.9.7.5ubuntu5.4) ...
ERROR: Can't find the archive-keyring
Is the ubuntu-keyring package installed?
dpkg: error processing apt (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 apt
W: Waited for dpkg --assert-multi-arch but it wasn't there - dpkgGo (10: No child processes)
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up apt (0.9.7.5ubuntu5.4) ...
ERROR: Can't find the archive-keyring
Is the ubuntu-keyring package installed?
dpkg: error processing apt (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 apt
Since then, I've been searching internet for hours and hours but I haven't found a solution.
I get the same error when I try to install or remove something.
I tried to use command apt get -f install but it didn't work.
Yesterday (and today, also) I tried to install Cinnamon, fsgamer (app that lets you minimize games in fullcreen), sublime text 2 and some other apps, nothing worked.
Strange thing, I installed BleachBit two days ago with no problems.
What should I do? I feel hopeless.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
tdockery97
Level 14
Level 14
Posts: 5058
Joined: Sun Jan 10, 2010 8:54 am
Location: Mt. Angel, Oregon

Re: Can't update Linux Mint 14

Post by tdockery97 »

Did you also try the command:

Code: Select all

sudo dpkg --configure -a
?
Mint Cinnamon 20.1
viking777

Re: Can't update Linux Mint 14

Post by viking777 »

It is an excellent idea to post error messages as you have, but it is an even better idea to read them first:
ERROR: Can't find the archive-keyring
Is the ubuntu-keyring package installed?
Well is it?

All you have to do to find out is to search for it in the package manager (or maybe even the software manager though I can't be sure about that as I never use it).

Alternatively run the command

Code: Select all

apt-cache policy ubuntu-keyring
And it will tell you if it is installed or not.
rindvor

Re: Can't update Linux Mint 14

Post by rindvor »

tdockery97 wrote:Did you also try the command:

Code: Select all

sudo dpkg --configure -a
?
I got this when I ran command:

Code: Select all

Setting up apt (0.9.7.5ubuntu5.4) ...
ERROR: Can't find the archive-keyring
Is the ubuntu-keyring package installed?
dpkg: error processing apt (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 apt
viking777 wrote:It is an excellent idea to post error messages as you have, but it is an even better idea to read them first:
ERROR: Can't find the archive-keyring
Is the ubuntu-keyring package installed?
Well is it?

All you have to do to find out is to search for it in the package manager (or maybe even the software manager though I can't be sure about that as I never use it).

Alternatively run the command

Code: Select all

apt-cache policy ubuntu-keyring
And it will tell you if it is installed or not.
Sorry, I didn't know. Here is what I got (I think it's installed but I'm not sure what it exactly means):

Code: Select all

apt-cache policy ubuntu-keyring
ubuntu-keyring:
  Installed: 2012.05.19
  Candidate: 2012.05.19
  Version table:
 *** 2012.05.19 0
        500 http://archive.ubuntu.com/ubuntu/ quantal/main i386 Packages
        100 /var/lib/dpkg/status
viking777

Re: Can't update Linux Mint 14

Post by viking777 »

Yes it is installed. (if it isn't the "installed" line will be blank) So that is not it then.

Try

Code: Select all

sudo apt-get -f install ubuntu-keyring
rindvor

Re: Can't update Linux Mint 14

Post by rindvor »

viking777 wrote:Yes it is installed. (if it isn't the "installed" line will be blank) So that is not it then.

Try

Code: Select all

sudo apt-get -f install ubuntu-keyring
Sorry, but that didn't work also. I got the same error. Here's code snippet:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
ubuntu-keyring is already the newest version.
The following packages were automatically installed and are no longer required:
  0ad-data avant-window-navigator-data awn-applet-animal-farm
  awn-applet-awn-system-monitor awn-applet-awnterm awn-applet-battery-applet
  awn-applet-cairo-clock awn-applet-cairo-main-menu awn-applet-comics
  awn-applet-common-folder awn-applet-cpufreq awn-applet-dialect
  awn-applet-feeds awn-applet-file-browser-launcher awn-applet-garbage
  awn-applet-hardware-sensors awn-applet-mail awn-applet-media-control
  awn-applet-media-icon-applet awn-applet-media-player
  awn-applet-notification-area awn-applet-quit-applet awn-applet-related
  awn-applet-shinyswitcher awn-applet-showdesktop awn-applet-stack
  awn-applet-thinkhdaps awn-applet-todo awn-applet-volume-control
  awn-applet-webapplet bzr compiz-plugins dockmanager gir1.2-rb-3.0
  gir1.2-ubuntuoneui-3.0 libenet1a libetpan15 libgldi3 libgnome-keyring1.0-cil
  libgnomedesktop2.20-cil libid3tag0 libimlib2 libmono-sqlite4.0-cil
  libmono-system-web-applicationservices4.0-cil
  libmono-system-web-services4.0-cil libmono-system-web4.0-cil
  libmono-web4.0-cil libmozjs185-1.0 libnvtt2 librhythmbox-core6
  librsvg2-2.18-cil libsyncdaemon-1.0-1 libubuntuoneui-3.0-1 libwnck2.20-cil
  libxmmsclient6 python-awn python-awn-extras python-bzrlib python-configobj
  python-dateutil python-desktop-agnostic python-gnomedesktop python-mpd
  python-mutagen python-rsvg python-ubuntuone-control-panel python-xklavier
  rhythmbox-data tex-common tex-gyre ttf-umefont ubuntu-sso-client
  ubuntu-sso-client-qt ubuntuone-client wine-gecko1.4
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up apt (0.9.7.5ubuntu5.4) ...
ERROR: Can't find the archive-keyring
Is the ubuntu-keyring package installed?
dpkg: error processing apt (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 apt
E: Sub-process /usr/bin/dpkg returned an error code (1)
viking777

Re: Can't update Linux Mint 14

Post by viking777 »

Ok, what have you got in /usr/share/keyrings?

Code: Select all

ls -l /usr/share/keyrings
rindvor

Re: Can't update Linux Mint 14

Post by rindvor »

viking777 wrote:Ok, what have you got in /usr/share/keyrings?

Code: Select all

ls -l /usr/share/keyrings
I got total 0. Folder is empty.
viking777

Re: Can't update Linux Mint 14

Post by viking777 »

Well that is the problem then. I don't know why you have no keys in there, and I don't know if this solution will work, but I have uploaded the keys from my folder to here:

http://www.fileswap.com/dl/0iANIdzbUL/
http://www.fileswap.com/dl/q9ujp0rkQZ/
http://www.fileswap.com/dl/4UsOtBAruW/
http://www.fileswap.com/dl/WRCNabc3jG/

Download them separately (sorry but the file sharing site wont give me a link for all four at the same time). and copy them to /usr/share/keyrings. They are all public keys so there is no issue with privacy, and they are all encrypted anyway. (you need to use the slow download link).

See if that solves it for you.
rindvor

Re: Can't update Linux Mint 14

Post by rindvor »

viking777 wrote:Well that is the problem then. I don't know why you have no keys in there, and I don't know if this solution will work, but I have uploaded the keys from my folder to here:

http://www.fileswap.com/dl/0iANIdzbUL/
http://www.fileswap.com/dl/q9ujp0rkQZ/
http://www.fileswap.com/dl/4UsOtBAruW/
http://www.fileswap.com/dl/WRCNabc3jG/

Download them separately (sorry but the file sharing site wont give me a link for all four at the same time). and copy them to /usr/share/keyrings. They are all public keys so there is no issue with privacy, and they are all encrypted anyway. (you need to use the slow download link).

See if that solves it for you.
It works, viking777, thank you very much!
I don't know how those files got deleted but now everything is working as normal.
Thanks!
Locked

Return to “Beginner Questions”