Trying to check for upgrades - could not run Sudo command

Asked by Geoffrey Pearce

This the error message I got. E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.

Then I opened a command window....."geoffrey@geoffrey-X58A-UD3R:~$ sudo dpkg-configure-a
[sudo] password for geoffrey:
sudo: dpkg-configure-a: command not found
geoffrey@geoffrey-X58A-UD3R:~$ sudo dpkg-configure-a
sudo: dpkg-configure-a: command not found
geoffrey@geoffrey-X58A-UD3R:~$

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: gnome-terminal 2.32.1-0ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
Uname: Linux 2.6.38-10-generic x86_64
Architecture: amd64
Date: Mon Jan 2 15:26:06 2012
ExecutablePath: /usr/bin/gnome-terminal
InstallationMedia: Zorin OS 5 64 bit - Release amd64
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-terminal
UpgradeStatus: No upgrade log present (probably fresh install)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Geoffrey Pearce
Solved:
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
#1

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We understand the difficulties you are facing, but it is better to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. You can also find a valid support at http://askubuntu.com or posting your question in the support forum of your local Ubuntu's community. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs.

Revision history for this message
Sam_ (and-sam) said :
#2

Geoffrey, please open a terminal: ctrl+alt+t
Enter:
sudo dpkg --configure -a

## To avoid typos rather copy and paste into terminal window.
Please note there're two dashes before 'configure' and one before 'a'.
Please also note empty spaces inbetween.

Please post complete terminal output here.

Please also run this and post complete output, thanks.
sudo apt-get update
sudo apt-get upgrade

Revision history for this message
Geoffrey Pearce (oboist3) said :
#3

This is the first one:

geoffrey@geoffrey-X58A-UD3R:~$ sudo dpkg --configure -a
[sudo] password for geoffrey:
dpkg: dependency problems prevent configuration of ubuntu-desktop:
 ubuntu-desktop depends on unity; however:
  Package unity is not installed.
dpkg: error processing ubuntu-desktop (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 ubuntu-desktop
geoffrey@geoffrey-X58A-UD3R:~$

2nd One:
sudo apt-get update
Ign http://dl.google.com stable InRelease
Get:1 http://dl.google.com stable Release.gpg [198 B]
Get:2 http://dl.google.com stable Release [1,347 B]
Ign http://extras.ubuntu.com natty InRelease
Ign http://archive.ubuntu.com natty InRelease
Ign http://archive.ubuntu.com natty-updates InRelease
Ign http://archive.ubuntu.com natty-security InRelease
Ign http://archive.getdeb.net natty-getdeb InRelease
Get:3 http://dl.google.com stable/main amd64 Packages [1,201 B]
Ign http://archive.canonical.com natty InRelease
Ign http://ppa.launchpad.net karmic InRelease
Ign http://ppa.launchpad.net maverick InRelease
Ign http://ppa.launchpad.net natty InRelease
Get:4 http://extras.ubuntu.com natty Release.gpg [72 B]
Ign http://dl.google.com stable/main TranslationIndex
Hit http://archive.ubuntu.com natty Release.gpg
Hit http://archive.ubuntu.com natty-updates Release.gpg
Hit http://archive.canonical.com natty Release.gpg
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Hit http://ppa.launchpad.net karmic Release.gpg
Hit http://extras.ubuntu.com natty Release
Hit http://archive.ubuntu.com natty-security Release.gpg
Hit http://archive.getdeb.net natty-getdeb Release.gpg
Hit http://archive.canonical.com natty Release
Hit http://ppa.launchpad.net maverick Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://extras.ubuntu.com natty/main Sources
Hit http://archive.ubuntu.com natty Release
Hit http://archive.canonical.com natty/partner amd64 Packages
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://ppa.launchpad.net karmic Release
Hit http://extras.ubuntu.com natty/main amd64 Packages
Hit http://ppa.launchpad.net maverick Release
Hit http://ppa.launchpad.net natty Release
Ign http://extras.ubuntu.com natty/main TranslationIndex
Hit http://ppa.launchpad.net natty Release
Hit http://ppa.launchpad.net natty Release
Hit http://archive.ubuntu.com natty-updates Release
Ign http://archive.canonical.com natty/partner TranslationIndex
Hit http://ppa.launchpad.net natty Release
Hit http://archive.getdeb.net natty-getdeb Release
Hit http://archive.ubuntu.com natty-security Release
Hit http://archive.ubuntu.com natty/main Sources
Hit http://archive.ubuntu.com natty/restricted Sources
Hit http://archive.ubuntu.com natty/universe Sources
Hit http://archive.ubuntu.com natty/multiverse Sources
Hit http://archive.ubuntu.com natty/main amd64 Packages
Hit http://ppa.launchpad.net natty Release
Hit http://ppa.launchpad.net natty Release
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main amd64 Packages
Ign http://ppa.launchpad.net karmic/main TranslationIndex
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main amd64 Packages
Hit http://archive.ubuntu.com natty/restricted amd64 Packages
Hit http://archive.ubuntu.com natty/universe amd64 Packages
Hit http://archive.ubuntu.com natty/multiverse amd64 Packages
Ign http://archive.ubuntu.com natty/main TranslationIndex
Ign http://dl.google.com stable/main Translation-en_US
Ign http://ppa.launchpad.net maverick/main TranslationIndex
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://dl.google.com stable/main Translation-en
Ign http://archive.ubuntu.com natty/multiverse TranslationIndex
Ign http://archive.ubuntu.com natty/restricted TranslationIndex
Ign http://archive.ubuntu.com natty/universe TranslationIndex
Hit http://archive.ubuntu.com natty-updates/main Sources
Hit http://archive.ubuntu.com natty-updates/restricted Sources
Hit http://archive.ubuntu.com natty-updates/universe Sources
Hit http://archive.getdeb.net natty-getdeb/games amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://archive.ubuntu.com natty-updates/multiverse Sources
Hit http://archive.ubuntu.com natty-updates/main amd64 Packages
Hit http://archive.ubuntu.com natty-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com natty-updates/universe amd64 Packages
Hit http://archive.ubuntu.com natty-updates/multiverse amd64 Packages
Ign http://archive.ubuntu.com natty-updates/main TranslationIndex
Ign http://archive.ubuntu.com natty-updates/multiverse TranslationIndex
Ign http://archive.ubuntu.com natty-updates/restricted TranslationIndex
Ign http://archive.ubuntu.com natty-updates/universe TranslationIndex
Hit http://archive.ubuntu.com natty-security/main Sources
Ign http://archive.getdeb.net natty-getdeb/games TranslationIndex
Hit http://archive.ubuntu.com natty-security/restricted Sources
Hit http://archive.ubuntu.com natty-security/universe Sources
Hit http://archive.ubuntu.com natty-security/multiverse Sources
Hit http://archive.ubuntu.com natty-security/main amd64 Packages
Hit http://archive.ubuntu.com natty-security/restricted amd64 Packages
Hit http://archive.ubuntu.com natty-security/universe amd64 Packages
Hit http://archive.ubuntu.com natty-security/multiverse amd64 Packages
Ign http://archive.ubuntu.com natty-security/main TranslationIndex
Ign http://archive.ubuntu.com natty-security/multiverse TranslationIndex
Ign http://archive.ubuntu.com natty-security/restricted TranslationIndex
Ign http://archive.ubuntu.com natty-security/universe TranslationIndex
Ign http://extras.ubuntu.com natty/main Translation-en_US
Ign http://archive.canonical.com natty/partner Translation-en_US
Ign http://extras.ubuntu.com natty/main Translation-en
Ign http://archive.canonical.com natty/partner Translation-en
Ign http://archive.getdeb.net natty-getdeb/games Translation-en_US
Ign http://archive.getdeb.net natty-getdeb/games Translation-en
Ign http://archive.ubuntu.com natty/main Translation-en_US
Ign http://archive.ubuntu.com natty/main Translation-en
Ign http://archive.ubuntu.com natty/multiverse Translation-en_US
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Ign http://ppa.launchpad.net karmic/main Translation-en
Ign http://archive.ubuntu.com natty/multiverse Translation-en
Ign http://archive.ubuntu.com natty/restricted Translation-en_US
Ign http://archive.ubuntu.com natty/restricted Translation-en
Ign http://archive.ubuntu.com natty/universe Translation-en_US
Ign http://archive.ubuntu.com natty/universe Translation-en
Ign http://ppa.launchpad.net maverick/main Translation-en_US
Ign http://ppa.launchpad.net maverick/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://archive.ubuntu.com natty-updates/main Translation-en_US
Ign http://archive.ubuntu.com natty-updates/main Translation-en
Ign http://archive.ubuntu.com natty-updates/multiverse Translation-en_US
Ign http://archive.ubuntu.com natty-updates/multiverse Translation-en
Ign http://archive.ubuntu.com natty-updates/restricted Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://archive.ubuntu.com natty-updates/restricted Translation-en
Ign http://archive.ubuntu.com natty-updates/universe Translation-en_US
Ign http://archive.ubuntu.com natty-updates/universe Translation-en
Ign http://archive.ubuntu.com natty-security/main Translation-en_US
Ign http://archive.ubuntu.com natty-security/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://archive.ubuntu.com natty-security/multiverse Translation-en_US
Ign http://archive.ubuntu.com natty-security/multiverse Translation-en
Ign http://archive.ubuntu.com natty-security/restricted Translation-en_US
Ign http://archive.ubuntu.com natty-security/restricted Translation-en
Ign http://archive.ubuntu.com natty-security/universe Translation-en_US
Ign http://archive.ubuntu.com natty-security/universe Translation-en
Fetched 2,818 B in 13s (208 B/s)
Reading package lists... Done

and Finally the third:
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 ubuntu-desktop : Depends: unity but it is not installed
E: Unmet dependencies. Try using -f.
geoffrey@geoffrey-X58A-UD3R:~$

Thanks for your assistance

Geoff

Revision history for this message
Sam_ (and-sam) said :
#4

Thanks for the output.
> ubuntu-desktop depends on unity; however:
> Package unity is not installed.

Please run via terminal:
sudo apt-get -f install

Which desktop environment are you running?
If you'd like to have Unity
https://help.ubuntu.com/11.10/ubuntu-help/index.html

install it with:
sudo apt-get install unity

which pulls in other packages.
http://packages.ubuntu.com/natty-updates/unity

sudo apt-get install ubuntu-desktop

is a metapackage which does retrieve those packages.
http://packages.ubuntu.com/natty/ubuntu-desktop

To avoid trouble on the next dist-upgrade rather disable karmic and maverick ppa in third-party tab of software-sources.
https://help.ubuntu.com/community/Repositories/Ubuntu#Third-Party_Software_Tab

Revision history for this message
Geoffrey Pearce (oboist3) said :
#5

Thanks for that- and this has fixed the error messages I was getting - at least the first line. I wont get Unity though as happy with Zorin distro and paid for the ultimate version so dont want to scrap it

Revision history for this message
Sam_ (and-sam) said :
#6

Glad it helped. Although Zorin isn't supported here, please make sure next time it's an application bug, in case rather ask in their support forum first. Thank you.
http://www.zoringroup.com/forum/

Revision history for this message
Geoffrey Pearce (oboist3) said :
#7

Sorry Sam, I followed the bug link when the error showed..... I did not know it was an Ubuntu link and forum until later, I am new to Linux....

Thanks again
Geoff Pearce

Sent from my iPhone

On 03/01/2012, at 10:30 PM, Sam_ <email address hidden> wrote:

> Your question #183529 on apt in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/183529
>
> Sam_ posted a new comment:
> Glad it helped. Although Zorin isn't supported here, please make sure next time it's an application bug, in case rather ask in their support forum first. Thank you.
> http://www.zoringroup.com/forum/
>
> --
> You received this question notification because you asked the question.