Author Topic: Synaptic Hangs  (Read 3440 times)

Newbe1

  • Guest
Synaptic Hangs
« on: August 24, 2010, 02:33:20 PM »
Hello!

My power was gone suddenly while running (updating) Synaptic Package Manager.

Now Synaptic will not start completely, It hangs.


Please help.

Thanks.


Offline hal8000

  • Sr. Member
  • ****
  • Posts: 346
Re: Synaptic Hangs
« Reply #1 on: August 24, 2010, 04:09:32 PM »
Can you open a terminal or konsole and type:

synaptic

Post the error message you see.

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2107
Re: Synaptic Hangs
« Reply #2 on: August 24, 2010, 04:26:14 PM »
Try this:

From a root terminal, try;

[root@localhost ~]# rpm --rebuilddb       <Enter>

or:

[root@localhost ~]# rm -f /var/lib/rpm/__db.*

which removes the old data base, then;

[root@localhost ~]# rpm -vv --rebuilddb

http://www.pclinuxos.com/forum/index.php/topic,74604.msg614116.html#msg614116

JohnW

PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3980
Re: Synaptic Hangs
« Reply #3 on: August 24, 2010, 04:52:25 PM »
First boot from the livecd, open a terminal, su to root and run umount on each of your pclos partitions to ensure they are not mounted. Then run fsck -f on them to repair any file system damage.

Then reboot into your normal system and as root delete any files (but not folders) in /var/lock/ with names relating to rpm, apt or synaptic.

If it still won't work try renaming the file /var/cache/apt/archives/lock.
« Last Edit: August 25, 2010, 02:35:17 AM by kjpetrie »
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline marcopl

  • Full Member
  • ***
  • Posts: 145
Re: Synaptic Hangs
« Reply #4 on: August 24, 2010, 10:29:42 PM »
oh helll...looks like u are gonna have a bad day...this synaptic thinngy is pretty sensitive...

Hello!

My power was gone suddenly while running (updating) Synaptic Package Manager.

Now Synaptic will not start completely, It hangs.


Please help.

Thanks.



Newbe1

  • Guest
Re: Synaptic Hangs
« Reply #5 on: August 26, 2010, 09:10:02 AM »
Hello!

Here is what terminal says when I type Synaptic:

[lnx82p@localhost ~]$ synaptic

(synaptic:3239): libglade-WARNING **: could not look up stock id 'Preferences'

(synaptic:3239): Gtk-CRITICAL **: gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed


Can you open a terminal or konsole and type:

synaptic

Post the error message you see.

Newbe1

  • Guest
Re: Synaptic Hangs
« Reply #6 on: August 26, 2010, 12:17:52 PM »
I tried this from my Root Login.

The Root Terminal does not respond with any message.

Also tried the [root@localhost ~]# rm -f /var/lib/rpm/__db.* 

The only response is: [root@localhost ~]#

What now?

Thanks.



Try this:

From a root terminal, try;

[root@localhost ~]# rpm --rebuilddb       <Enter>

or:

[root@localhost ~]# rm -f /var/lib/rpm/__db.*

which removes the old data base, then;

[root@localhost ~]# rpm -vv --rebuilddb

http://www.pclinuxos.com/forum/index.php/topic,74604.msg614116.html#msg614116

JohnW



genomega

  • Guest
Re: Synaptic Hangs
« Reply #7 on: August 26, 2010, 05:20:56 PM »
Quote
synaptic:3239): libglade-WARNING **: could not look up stock id 'Preferences'

(synaptic:3239): Gtk-CRITICAL **: gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed

You can ignore this message.

There is a repair synaptic utility but I can't recall the command at the moment.
 

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11539
  • ----IOFLU----
Re: Synaptic Hangs
« Reply #8 on: August 26, 2010, 06:03:32 PM »
I tried this from my Root Login.

The Root Terminal does not respond with any message.

Also tried the [root@localhost ~]# rm -f /var/lib/rpm/__db.* 

The only response is: [root@localhost ~]#

What now?

Thanks.

[root@localhost ~]# rpm -vv --rebuilddb          <Enter>
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Newbe1

  • Guest
Re: Synaptic Hangs
« Reply #9 on: August 27, 2010, 01:53:51 PM »
Hi!

I did the:

[root@localhost ~]# rm -f /var/lib/rpm/__db.* <Enter>

then

[root@localhost ~]#rpm -vv --rebuilddb <Enter>

The response is :

[root@localhost ~]#

Synaptic still Hangs..

:(

Any other ways?

Thanks.



I tried this from my Root Login.

The Root Terminal does not respond with any message.

Also tried the [root@localhost ~]# rm -f /var/lib/rpm/__db.* 

The only response is: [root@localhost ~]#

What now?

Thanks.

[root@localhost ~]# rpm -vv --rebuilddb          <Enter>

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11539
  • ----IOFLU----
Re: Synaptic Hangs
« Reply #10 on: August 27, 2010, 03:40:39 PM »
Hi!

I did the:

[root@localhost ~]# rm -f /var/lib/rpm/__db.* <Enter>

then

[root@localhost ~]#rpm -vv --rebuilddb <Enter>

The response is :

[root@localhost ~]#

Synaptic still Hangs..

:(

Any other ways?

Thanks.


Just to clarify, when a command is executed without errors, there will be no response, unless the command, by it's nature, asks for one. (fdisk -l for instance) Only errors will give a response otherwise.

Assuming that the two commands have executed correctly, from their lack of error messages, we have to assume there is more involved than a database corruption. As root, try to reinstall Synaptic with the commands;

[root@localhost ~]# apt-get check         <Enter>

[root@localhost ~]# apt-get install --reinstall synaptic          <Enter>

If you get error messages from either of these commands, post the exact error messages. They usually have meaning that gives a clue as to what the next action should be.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3980
Re: Synaptic Hangs
« Reply #11 on: August 28, 2010, 12:13:13 AM »
You need to find and delete the lock files for synaptic/apt-get/rpm.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

genomega

  • Guest
Re: Synaptic Hangs
« Reply #12 on: August 28, 2010, 12:26:18 AM »
Removing stale locks

If an RPM command hangs, segfaults, or otherwise behaves abnormally during use then the first task is to check for stale lock files. This can be accomplished with -CA option to the rpmdb_stat command:

# cd /var/lib/rpm
# /usr/lib/rpm/rpmdb_stat -CA

Newbe1

  • Guest
Re: Synaptic Hangs
« Reply #13 on: August 28, 2010, 02:10:49 PM »
Hello!

Nither one command produces any response.

I don´t even see [root@localhost ~]#

When I got no response from  [root@localhost ~]#apt-get check        <Enter>

I restarted Root Terminal and put in the second command

[root@localhost ~]#apt-get install --reinstall synaptic          <Enter>

No response...

Synaptic still hangs... :(




Hi!

I did the:

[root@localhost ~]# rm -f /var/lib/rpm/__db.* <Enter>

then

[root@localhost ~]#rpm -vv --rebuilddb <Enter>

The response is :

[root@localhost ~]#

Synaptic still Hangs..

:(

Any other ways?

Thanks.


Just to clarify, when a command is executed without errors, there will be no response, unless the command, by it's nature, asks for one. (fdisk -l for instance) Only errors will give a response otherwise.

Assuming that the two commands have executed correctly, from their lack of error messages, we have to assume there is more involved than a database corruption. As root, try to reinstall Synaptic with the commands;

[root@localhost ~]# apt-get check         <Enter>

[root@localhost ~]# apt-get install --reinstall synaptic          <Enter>

If you get error messages from either of these commands, post the exact error messages. They usually have meaning that gives a clue as to what the next action should be.

Offline marcopl

  • Full Member
  • ***
  • Posts: 145
Re: Synaptic Hangs
« Reply #14 on: August 28, 2010, 07:23:11 PM »
Newbe1, i hope u are executing the commands properly. for example with apt-get check , u should see;

[root@localhost techie]# apt-get check
Reading Package Lists... Done
Building Dependency Tree... Done
[root@localhost techie]#

Hello!

Nither one command produces any response.

I don´t even see [root@localhost ~]#

When I got no response from  [root@localhost ~]#apt-get check        <Enter>

I restarted Root Terminal and put in the second command

[root@localhost ~]#apt-get install --reinstall synaptic          <Enter>

No response...

Synaptic still hangs... :(




Hi!

I did the:

[root@localhost ~]# rm -f /var/lib/rpm/__db.* <Enter>

then

[root@localhost ~]#rpm -vv --rebuilddb <Enter>

The response is :

[root@localhost ~]#

Synaptic still Hangs..

:(

Any other ways?

Thanks.


Just to clarify, when a command is executed without errors, there will be no response, unless the command, by it's nature, asks for one. (fdisk -l for instance) Only errors will give a response otherwise.

Assuming that the two commands have executed correctly, from their lack of error messages, we have to assume there is more involved than a database corruption. As root, try to reinstall Synaptic with the commands;

[root@localhost ~]# apt-get check         <Enter>

[root@localhost ~]# apt-get install --reinstall synaptic          <Enter>

If you get error messages from either of these commands, post the exact error messages. They usually have meaning that gives a clue as to what the next action should be.