LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 05-01-2010, 03:32 PM   #1
Indian-Art
LQ Newbie
 
Registered: May 2010
Posts: 4

Rep: Reputation: 0
How can I make my Update Manager work again?


How can I make my Update Manager work again?

Software: Ubuntu 9.10 (Karmic Koala)
Kernel Linux= 2.6.31-19 generic
GNOME 2.28.1

Here is the background:

Update Manager shows 121 updates (which include important security upgrades, Recommended Updates & other Updates which include Google Chrome and PlayOnLinux)

However, on clicking 'Install Updates', feeding the password and clicking 'Apply', Update Manager falsely states "Changes Applied
Update is Complete"

It further states "Not all Updates succeeded. For further details of failure, please expand the 'Details' panel below."

That details panel states, “Extracting packages from templates :100%”
“Preconfiguring Packages …
(Reading database … 5% dpkg: unrecoverable fatal error, aborting :
files list file for package 'foomatic-gui is missing final newline
E: Sub-process / usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:


Then the cursor keeps blinking endlessly.
Please help.

What should I do to resolve this?

I opened a terminal and typed in this line:

sudo apt-get update && sudo apt-get upgrade
I can sent you the error message later.

I tried to remove the foomatic package, and then installing again ( sudo apt-get remove foomatic-gui & then sudo apt-get install foomatic-gui )

However, that too did not work (the error message can be posted on request).

Please help.

Best regards,

Thanks in advance.
 
Old 05-01-2010, 04:27 PM   #2
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 13 , MacPup,Linux-Lite 2.0, SaliX
Posts: 2,801
Blog Entries: 18

Rep: Reputation: 901Reputation: 901Reputation: 901Reputation: 901Reputation: 901Reputation: 901Reputation: 901Reputation: 901
You can try fixing Update Manager by opening a terminal and do

Code:
sudo dpkg –configure -a
1. follow the suggestions

2. conclude the “repair session”

with

Code:
sudo apt-get upgrade –fix-broken
reboot when done.

This worked on my 8.04 LTS install.
 
1 members found this post helpful.
Old 05-01-2010, 04:30 PM   #3
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux
Posts: 1,062

Rep: Reputation: 101Reputation: 101
Indian-Art, could you post your sources.list (/etc/apt/sources.list)?
 
1 members found this post helpful.
Old 05-02-2010, 02:12 AM   #4
Indian-Art
LQ Newbie
 
Registered: May 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Please could you tell me how to post my sources.list?

Quote:
Originally Posted by mark_alfred View Post
Indian-Art, could you post your sources.list (/etc/apt/sources.list)?
Thanks Mark,

I'm not sure if I am posting what you asked. This is what I did to get the post.

I clicked 'Computer' then 'File System' then 'etc' then 'apt' then Right Clicked 'sources.list' and opened it with Gedit. I have posted the content below:

# deb cdrom:[Ubuntu 8.04.2 _Hardy Heron_ - Release i386 (20090121)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

# deb cdrom:[Ubuntu 10.04 _Lucid Lynx_ - Alpha i386 (20091209)]/ lucid main restricted
deb http://ftp.usf.edu/pub/ubuntu/ karmic main
deb-src http://ftp.usf.edu/pub/ubuntu/ karmic main

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ftp.usf.edu/pub/ubuntu/ karmic-updates main
deb-src http://ftp.usf.edu/pub/ubuntu/ karmic-updates main

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://ftp.usf.edu/pub/ubuntu/ karmic universe
deb-src http://ftp.usf.edu/pub/ubuntu/ karmic universe
deb http://ftp.usf.edu/pub/ubuntu/ karmic-updates universe
deb-src http://ftp.usf.edu/pub/ubuntu/ karmic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://in.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://ftp.usf.edu/pub/ubuntu/ karmic-security main
deb-src http://ftp.usf.edu/pub/ubuntu/ karmic-security main
deb http://ftp.usf.edu/pub/ubuntu/ karmic-security universe
deb-src http://ftp.usf.edu/pub/ubuntu/ karmic-security universe
# deb http://ppa.launchpad.net/openoffice-pkgs/ppa/ubuntu karmic main # disabled on upgrade to karmic
# deb http://ppa.launchpad.net/ubuntu-mozi...ily/ppa/ubuntu karmic main
# deb-src http://ppa.launchpad.net/ubuntu-mozi...ily/ppa/ubuntu karmic main
# deb http://ppa.launchpad.net/bisigi/ppa/ubuntu jaunty main
# deb-src http://ppa.launchpad.net/bisigi/ppa/ubuntu jaunty main
# deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu jaunty main deb-src http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu jaunty main


# deb http://downloads.sourceforge.net/pro...la/mozilla/apt all main


I also typed /etc/apt/sources.list and sudo /etc/apt/sources.list

I am posting what I got in the 'Terminal'

sp@sp-desktop:~$ /etc/apt/sources.list
bash: /etc/apt/sources.list: Permission denied

sp@sp-desktop:~$ sudo /etc/apt/sources.list
sudo: /etc/apt/sources.list: command not found
sp@sp-desktop:~$

I think I am the root user, however, it is not asking me for the password and is denying me permission.

Please could you tell me how to post my sources.list if I haven't already done so above?
Greatly appreciate your help.

Last edited by Indian-Art; 05-02-2010 at 03:21 AM. Reason: I may have misunderstood instructions the first time.
 
Old 05-02-2010, 02:21 AM   #5
Indian-Art
LQ Newbie
 
Registered: May 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Need more help

Quote:
Originally Posted by rokytnji View Post
You can try fixing Update Manager by opening a terminal and do

Code:
sudo dpkg –configure -a
1. follow the suggestions

2. conclude the “repair session”

with

Code:
sudo apt-get upgrade –fix-broken
reboot when done.

This worked on my 8.04 LTS install.
Thanks for your help rokytnji.

I think your help has located the bug, however, I don't know how to proceed further. Please could you help me?

This is the output I got from the terminal. Looking at this output, please could you give some specific commands for the terminal which can resolve the issue.

Thanks again.

sp@sp-desktop:~$ sudo dpkg –configure -a
dpkg: need an action option

Type dpkg --help for help about installing and deinstalling packages[*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL)[*].

Options marked[*] produce a lot of output - pipe it through `less' or `more' !
sp@sp-desktop:~$ dpkg -Dhelp
dpkg debugging option, --debug=<octal> or -D<octal>:

number ref. in source description
1 general Generally helpful progress information
2 scripts Invocation and status of maintainer scripts
10 eachfile Output for each file processed
100 eachfiledetail Lots of output for each file processed
20 conff Output for each configuration file
200 conffdetail Lots of output for each configuration file
40 depcon Dependencies and conflicts
400 depcondetail Lots of dependencies/conflicts output
10000 triggers Trigger activation and processing
20000 triggersdetail Lots of output regarding triggers
40000 triggersstupid Silly amounts of output regarding triggers
1000 veryverbose Lots of drivel about eg the dpkg/info directory
2000 stupidlyverbose Insane amounts of drivel

Debugging options are be mixed using bitwise-or.
Note that the meanings and values are subject to change.


sp@sp-desktop:~$ dpkg --force-help
dpkg forcing options - control behaviour when problems found:
warn but continue: --force-<thing>,<thing>,...
stop with error: --refuse-<thing>,<thing>,... | --no-force-<thing>,...
Forcing things:
all [!] Set all force options
downgrade[*] Replace a package with a lower version
configure-any Configure any package which may help this one
hold Process incidental packages even when on hold
bad-path PATH is missing important programs, problems likely
not-root Try to (de)install things even when not root
overwrite Overwrite a file from one package with another
overwrite-diverted Overwrite a diverted file with an undiverted version
bad-verify Install a package even if it fails authenticity check
depends-version [!] Turn dependency version problems into warnings
depends [!] Turn all dependency problems into warnings
confnew [!] Always use the new config files, don't prompt
confold [!] Always use the old config files, don't prompt
confdef [!] Use the default option for new config files if one
is available, don't prompt. If no default can be found,
you will be prompted unless one of the confold or
confnew options is also given
confmiss [!] Always install missing config files
breaks [!] Install even if it would break another package
conflicts [!] Allow installation of conflicting packages
architecture [!] Process even packages with wrong architecture
overwrite-dir [!] Overwrite one package's directory with another's file
remove-reinstreq [!] Remove packages which require installation
remove-essential [!] Remove an essential package

WARNING - use of options marked [!] can seriously damage your installation.
Forcing options marked[*] are enabled by default.
sp@sp-desktop:~$

Last edited by Indian-Art; 05-02-2010 at 03:23 AM. Reason: Spacing
 
Old 05-02-2010, 06:13 PM   #6
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux
Posts: 1,062

Rep: Reputation: 101Reputation: 101
Your sources.list looks fine. It seems the error centres on foomatic-gui package. Try just installing that, and see what it says. "sudo apt-get install foomatic-gui", and see what it says. If that works, then try the Update Manager again.
 
1 members found this post helpful.
Old 05-02-2010, 06:27 PM   #7
Indian-Art
LQ Newbie
 
Registered: May 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Smile The problem has been resolved.

Quote:
Originally Posted by mark_alfred View Post
Your sources.list looks fine. It seems the error centres on foomatic-gui package. Try just installing that, and see what it says. "sudo apt-get install foomatic-gui", and see what it says. If that works, then try the Update Manager again.

The problem has been resolved. I shall elaborate on it later in this post. I think a power outage long time ago was the culprit.

Thanks Mark & rokytnji

The problem was solved by copying the good (not corrupted) file from my Laptop PC (also running Ubuntu and dual booted) and using the terminal to paste it over the corrupted file of the problematic Desktop PC. I used a pen-drive and then the terminal For instance, sudo mv /home/sp/Music/system-tools-backends.list /var/lib/dpkg/info/system-tools-backends.list ). Good thing the update manager pointed out the offending agents (corrupt files). They were all ".lists" of some kind.
Thanks everyone.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make your own Display Manager? How do they work? QueenZ Linux - Newbie 1 03-22-2010 03:09 AM
Update manager doesn't work, now I must manually run 'dpkg --configure -a' ?? GoodLukeing Linux - Newbie 4 12-21-2008 08:10 PM
make Xconfig doesn't work, make menuconfig does work Debian/KDE bucovaina78 Linux - Kernel 1 10-15-2008 02:26 PM
Unable to upgrade to ubuntu 7.10, update manager fails to update.... jonbvgood Linux - Software 2 02-05-2008 04:58 PM
how to make Football manager 2005 work on suse 9.3? fireedo Linux - Games 1 06-27-2005 08:04 AM


All times are GMT -5. The time now is 03:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration