LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-08-2007, 07:03 PM   #1
ljs662_removed
Member
 
Registered: Nov 2006
Posts: 51

Rep: Reputation: 15
Getting error in apt-get


Hi LQ,
Everytime I try to use apt-get to install or upgrade, I get the error below.

I am running ubuntu 7.10 gusty gibbon.

apt-get was running fine previously I'm not sure what went wrong.

user@laptop:/tmp$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up update-notifier (0.60) ...
/usr/share/gconf/schemas/update-notifier.schemas:12: parser error : Opening and ending tag mismatch: default line 7 and schema
</schema>
^
/usr/share/gconf/schemas/update-notifier.schemas:14: parser error : expected '>'
</schemalist>
^
/usr/share/gconf/schemas/update-notifier.schemas:15: parser error : Opening and ending tag mismatch: schemalist line 2 and gconfschemafile
</gconfschemafile>
^
/usr/share/gconf/schemas/update-notifier.schemas:16: parser error : Premature end of data in tag gconfschemafile line 1

^
dpkg: error processing update-notifier (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
update-notifier
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@laptop:/tmp$


Any Ideas????


:wq
 
Old 10-08-2007, 07:07 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
You can try sudo apt-get dist-upgrade or try using sudo aptitude upgrade (or dist-upgrade). Sometimes aptitude handles things better than apt-get.
 
Old 10-08-2007, 07:08 PM   #3
ljs662_removed
Member
 
Registered: Nov 2006
Posts: 51

Original Poster
Rep: Reputation: 15
Hmmmm OK I came accross this --> https://bugs.launchpad.net/ubuntu/+s...er/+bug/150666

If that helps.
I'm still not sure how to fix it though....
 
Old 10-08-2007, 07:12 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
Looks like you just need to sudo gedit /usr/share/gconf/schemas/update-notifier.schemas and change line 7 to look like this:
Code:
<gconfschemafile>
  <schemalist>
    <schema>
      <key>/schemas/apps/update-notifier/show_apport_crashes</key>
      <applyto>/apps/update-notifier/show_apport_crashes</applyto>
      <type>bool</type>
      <default>false</default>
      <locale name="C">
        <short>Display apport crash reports automatically</short>
        <long>If this is disabled, the user will not be notified about pending apport crash reports.</long>
      </locale>
    </schema>

  </schemalist>
</gconfschemafile>

Last edited by pljvaldez; 10-08-2007 at 07:14 PM.
 
Old 10-09-2007, 02:36 AM   #5
ljs662_removed
Member
 
Registered: Nov 2006
Posts: 51

Original Poster
Rep: Reputation: 15
Thanks!

Thankyou pljvaldez.

That fixed it :-)
 
Old 10-09-2007, 02:38 AM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
If you switch from using apt-get to aptitude, your first aptitude command should be ...
# aptitude keep-all
 
  


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
apt error kariukidw Debian 3 08-05-2007 02:24 PM
APT-GET Error carlosinfl Debian 22 01-11-2006 01:47 PM
apt-get ERROR robramm Linux - General 2 05-21-2005 05:02 PM
apt-get error installing xlibs 4.2.1-14, apt-get won't work at all now pib Debian 1 12-11-2003 12:39 AM
apt-get Error goal2guy Linux - Software 0 12-02-2003 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:41 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration