Page 1 of 1

Can't update Linux Mint 14

Posted: Sun Mar 24, 2013 1:39 pm
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.

Re: Can't update Linux Mint 14

Posted: Sun Mar 24, 2013 1:43 pm
by tdockery97
Did you also try the command:

Code: Select all

sudo dpkg --configure -a
?

Re: Can't update Linux Mint 14

Posted: Sun Mar 24, 2013 1:47 pm
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.

Re: Can't update Linux Mint 14

Posted: Sun Mar 24, 2013 1:51 pm
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

Re: Can't update Linux Mint 14

Posted: Sun Mar 24, 2013 2:02 pm
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

Re: Can't update Linux Mint 14

Posted: Sun Mar 24, 2013 2:10 pm
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)

Re: Can't update Linux Mint 14

Posted: Sun Mar 24, 2013 2:24 pm
by viking777
Ok, what have you got in /usr/share/keyrings?

Code: Select all

ls -l /usr/share/keyrings

Re: Can't update Linux Mint 14

Posted: Sun Mar 24, 2013 2:27 pm
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.

Re: Can't update Linux Mint 14

Posted: Sun Mar 24, 2013 2:46 pm
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.

Re: Can't update Linux Mint 14

Posted: Sun Mar 24, 2013 3:05 pm
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!