Author Topic: Synaptic Hangs  (Read 3425 times)

Offline marcopl

  • Full Member
  • ***
  • Posts: 145
Re: Synaptic Hangs
« Reply #15 on: August 28, 2010, 07:26:11 PM »
and apt-get install --reinstall synaptice should generate something like this ( i m just reinstalling 'nano' editor and not synaptic)
the sample output is shown below.....


[root@localhost techie]# apt-get install --reinstall nano
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 removed and 0 not upgraded.
Need to get 574kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirror.aarnet.edu.au pclinuxos/2010/updates nano 2.2.4-1pclos2010 [574kB]
Fetched 574kB in 2s (246kB/s)
Committing changes...
Preparing                                ############################## [100%]
Updating / installing
  nano-2.2.4-1pclos2010.i586             ############################## [100%]
Done.
[root@localhost techie]#



Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Synaptic Hangs
« Reply #16 on: August 28, 2010, 09:43:20 PM »
Try the following:

..as regular user (if you have it installed..  it just updates your apt sources.list with the best repo for your location):
Code: [Select]
apt-sources-update.sh -w

.. allow it to overwrite your sources.list (with root password prompt) when the repo speed test completes.  If you don't have the script, let us know..  I will post it for download.


..then as root:
Quote
# Delete rpm locks and rebuild rpm database...
# ...rebuilding the database should take awhile and produce copious output

rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb

# Remove other lock files if they exist...
rm /var/cache/apt/archives/lock
rm /var/lock/rpm/transaction
rm /var/lib/rpm/.RPMLOCK

# Remove old package info and cached packages
rm -f /var/cache/apt/*.bin
rm -f /var/lib/apt/lists/*
apt-get clean

# Get new package lists, fix any broken installed packages, and perform a complete update
apt-get update
apt-get -f install
apt-get dist-upgrade


..note that the apt-get clean command will delete your RPM cache and all packages to be updated will be re-downloaded with the dist-upgrade.

« Last Edit: August 29, 2010, 10:08:05 AM by travisn000 »

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3980
Re: Synaptic Hangs
« Reply #17 on: August 29, 2010, 03:30:02 AM »
When you execute a CLI command the prompt will not return until the command is complete. If the command takes several minutes you will be staring at a blank console for several minutes if the command doesn't produce output. How long did you wait before concluding the prompt wasn't coming back? Sometimes the prompt doesn't show afterwards, in which case a simple press of <Enter> will bring it up.

Secondly, have you searched and destroyed lock files? When programs such as rpm and, I believe, apt start, they first look for their lock file. If it exists they immediately exit (with or without a warning depending on the programmer's thoughts). If it does not exist they create it, and then when they are finished they delete it. The lock file will either be an empty file or it might contain the PID of the process, but its main function is to exist if the program is running. This is important because only one package management program should run at a time, since otherwise you could try to install a program and remove its dependencies at the same time and defeat the integrity checks built in to ensure you don't break your system. Also, the rpm database could be corrupted if two applications can open and edit its files at the same time. So lock files are used to ensure you can't run the same program twice simultaneously. If the program crashes in the middle, or the power fails, the deletion of the lock file never happens, and next time you try to start apt it will refuse to run. For Synaptic, this means it will not be able to read the package lists when it starts up, as it uses apt-get to do that and apt-get won't run, so it waits for a non-running program to report its results.

You therefore need to find and remove the lock files.
Genomega has told you where the rpm ones will be, if they are there, but it is probably the apt one you need to find. I know there is one at /var/cache/apt/archives/lock and another at /var/lib/apt/lists/lock, but not sure whether they're the ones, which is why I suggested renaming rather than deleting them.
« Last Edit: August 29, 2010, 03:33:35 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

Newbe1

  • Guest
Re: Synaptic Hangs
« Reply #18 on: September 09, 2010, 10:53:52 AM »
I see nothing like that.

I copy the command as it was written, then paste in root terminal and press ENTER on the keyboard.

No response.

Then I did the same with second command... No response.

something is seriously wrong. :(

 



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.

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6367
  • I'm going South
Re: Synaptic Hangs
« Reply #19 on: September 09, 2010, 11:35:21 AM »
I see nothing like that.

I copy the command as it was written, then paste in root terminal and press ENTER on the keyboard.

No response.

Then I did the same with second command... No response.

When you write "No response" does that mean that you get root's prompt back but no other messages -- which would indicate that the command has finished executing without errors? Or does it mean that you don't get a prompt? Then the command has not finished executing.

(Your root prompt is the string [root@localhost ~]# at the beginning of a line. It's probably coloured red.)
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Newbe1

  • Guest
Re: Synaptic Hangs
« Reply #20 on: September 09, 2010, 01:29:39 PM »
Hello, and Thanks for this fix, it worked! Well mostly...

The first command... Produced no usable update links.

The second set of commands worked, except

rm -f /var/lib/apt/lists/* this produced a message saying this is a partial file and cannot be deleted.

Now synaptic is running but cannot update. Or cannot find a working server (something like that).

Please send me an update list and how to put it in.

Below is the response to the first command.. apt-sources-update.sh -w 

[lnx82p@localhost ~]$ apt-sources-update.sh -w

Retrieving updated apt sources.list...

/usr/bin/apt-sources-update.sh: line 282: ((: /1 : syntax error: operand expected (error token is "/1 ")

Testing repo sync age and download speeds..



The following mirrors timed out, are out of date, or are not valid :

http://ftp.nluug.nl/ibiblio/distributions/pclinuxos/apt/
http://ftp.ntua.gr/pub/linux/pclinuxos/apt/
http://pclosusers.com/pclosfiles/
http://ftp.vim.org/ibiblio/distributions/pclinuxos/apt/
http://ftp.heanet.ie/pub/pclinuxos/apt/
http://ftp.belnet.be/mirror/pclinuxonline.com/apt/
http://ftp.sh.cvut.cz/MIRRORS/pclinuxos/apt/
http://cesium.di.uminho.pt/pub/pclinuxos/apt/
http://ftp.kddlabs.co.jp/Linux/packages/pclinuxos/apt/
http://ftp.jaist.ac.jp/pub/Linux/PCLinuxOS/apt/
http://www.mirror.in.th/osarchive/pclinuxos/pclinuxos/apt/
http://ftp.twaren.net/Linux/PCLinuxOS/apt/
http://gnupg.cdpa.nsysu.edu.tw/Linux/PCLinuxOS/apt/
http://mirror.internode.on.net/pub/pclinuxos/apt/
http://mirror.aarnet.edu.au/pub/pclinuxos/apt/
http://na.mirror.garr.it/mirrors/pclinuxos/apt/
http://ftp.ch.debian.org/mirror/pclinuxos/apt/
http://gnustep.ethz.ch/mirror/pclinuxos/apt/
http://debian.ethz.ch/mirror/pclinuxos/apt/
ftp://ftp.pbone.net/pub/pclinuxos/apt/
http://ftp.klid.dk/ftp/pclinuxos/apt/
http://mirrors.xservers.ro/pclinuxos/apt/
http://distrib-coffee.ipsl.jussieu.fr/pub/linux/pclinuxos/apt/
http://ftp.leg.uct.ac.za/pub/linux/pclinuxos/apt/
http://ftp.tu-chemnitz.de/pub/linux/sunsite.unc-mirror/distributions/texstar/pclinuxos/apt/
http://ftp.ussg.iu.edu/linux/pclinuxos/pclinuxos/apt/
http://spout.ussg.indiana.edu/linux/pclinuxos/pclinuxos/apt/
http://ftp.uwsg.indiana.edu/linux/pclinuxos/pclinuxos/apt/
http://ftp.nl.freebsd.org/os/Linux/distr/texstar/pclinuxos/apt/
http://distro.ibiblio.org/pub/linux/distributions/texstar/pclinuxos/apt/

PCLinuxOS official repositories:
(ordered by speed-test results, fastest to slowest)
(average download speed in bytes/seconds for ~500 KB file)


537      http://mirror.pclinuxclub.com/pclinuxos/apt/
270      http://ftp.riken.go.jp/pub/Linux/pclinuxos/apt/


  Activating http://mirror.pclinuxclub.com/pclinuxos/apt/
  Creating /etc/apt/sources.list

/usr/bin/apt-sources-update.sh: line 371: ((: /1 : syntax error: operand expected (error token is "/1 ")
Value out of range.
[lnx82p@localhost ~]$



Try the following:

..as regular user (if you have it installed..  it just updates your apt sources.list with the best repo for your location):
Code: [Select]
apt-sources-update.sh -w

.. allow it to overwrite your sources.list (with root password prompt) when the repo speed test completes.  If you don't have the script, let us know..  I will post it for download.


..then as root:
Quote
# Delete rpm locks and rebuild rpm database...
# ...rebuilding the database should take awhile and produce copious output

rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb

# Remove other lock files if they exist...
rm /var/cache/apt/archives/lock
rm /var/lock/rpm/transaction
rm /var/lib/rpm/.RPMLOCK

# Remove old package info and cached packages
rm -f /var/cache/apt/*.bin
rm -f /var/lib/apt/lists/*
apt-get clean

# Get new package lists, fix any broken installed packages, and perform a complete update
apt-get update
apt-get -f install
apt-get dist-upgrade



..note that the apt-get clean command will delete your RPM cache and all packages to be updated will be re-downloaded with the dist-upgrade.



Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3980
Re: Synaptic Hangs
« Reply #21 on: September 10, 2010, 03:30:25 AM »
That's because the page http://mirror.pclinuxclub.com/pclinuxos/apt/ generates an Internal Server error and does not serve the mirrors list. Possibly it's an outdated link.

Here is my /etc/apt/sources.list:
Code: [Select]

# Package repository URL's

# Signed repositories have a [<key>] where <key> is the name of the key
# as it appears in vendors.list. If you remove it, no digital signature check
# will be made.

# rpm http://ftp.nluug.nl/ibiblio/distributions/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.ntua.gr/pub/linux/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://pclosusers.com/pclosfiles/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.vim.org/ibiblio/distributions/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
rpm http://ftp.heanet.ie/pub/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games 
# rpm http://ftp.belnet.be/mirror/pclinuxonline.com/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.sh.cvut.cz/MIRRORS/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://cesium.di.uminho.pt/pub/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.riken.go.jp/pub/Linux/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.kddlabs.co.jp/Linux/packages/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.jaist.ac.jp/pub/Linux/PCLinuxOS/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://mirror.pclinuxclub.com/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://www.mirror.in.th/osarchive/pclinuxos/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.twaren.net/Linux/PCLinuxOS/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://gnupg.cdpa.nsysu.edu.tw/Linux/PCLinuxOS/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://mirror.internode.on.net/pub/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://mirror.aarnet.edu.au/pub/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://na.mirror.garr.it/mirrors/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.ch.debian.org/mirror/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://gnustep.ethz.ch/mirror/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://debian.ethz.ch/mirror/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm [url]ftp://ftp.pbone.net/pub/pclinuxos/apt/[/url] pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.klid.dk/ftp/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://mirrors.xservers.ro/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://distrib-coffee.ipsl.jussieu.fr/pub/linux/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.leg.uct.ac.za/pub/linux/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.tu-chemnitz.de/pub/linux/sunsite.unc-mirror/distributions/texstar/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.ussg.iu.edu/linux/pclinuxos/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://spout.ussg.indiana.edu/linux/pclinuxos/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.uwsg.indiana.edu/linux/pclinuxos/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.nl.freebsd.org/os/Linux/distr/texstar/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://distro.ibiblio.org/pub/linux/distributions/texstar/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games 





Save it as root, open Synaptic, and change the preferences to point to the correct repo.
-----------
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

Newbe1

  • Guest
Re: Synaptic Hangs
« Reply #22 on: September 16, 2010, 03:11:58 AM »
Thanks for the links,

But I cannot insert them in root´s synaptic. The packages menu is gray.


That's because the page http://mirror.pclinuxclub.com/pclinuxos/apt/ generates an Internal Server error and does not serve the mirrors list. Possibly it's an outdated link.

Here is my /etc/apt/sources.list:
Code: [Select]

# Package repository URL's

# Signed repositories have a [<key>] where <key> is the name of the key
# as it appears in vendors.list. If you remove it, no digital signature check
# will be made.

# rpm http://ftp.nluug.nl/ibiblio/distributions/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.ntua.gr/pub/linux/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://pclosusers.com/pclosfiles/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.vim.org/ibiblio/distributions/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
rpm http://ftp.heanet.ie/pub/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games 
# rpm http://ftp.belnet.be/mirror/pclinuxonline.com/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.sh.cvut.cz/MIRRORS/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://cesium.di.uminho.pt/pub/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.riken.go.jp/pub/Linux/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.kddlabs.co.jp/Linux/packages/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.jaist.ac.jp/pub/Linux/PCLinuxOS/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://mirror.pclinuxclub.com/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://www.mirror.in.th/osarchive/pclinuxos/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.twaren.net/Linux/PCLinuxOS/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://gnupg.cdpa.nsysu.edu.tw/Linux/PCLinuxOS/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://mirror.internode.on.net/pub/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://mirror.aarnet.edu.au/pub/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://na.mirror.garr.it/mirrors/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.ch.debian.org/mirror/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://gnustep.ethz.ch/mirror/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://debian.ethz.ch/mirror/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm [url]ftp://ftp.pbone.net/pub/pclinuxos/apt/[/url] pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.klid.dk/ftp/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://mirrors.xservers.ro/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://distrib-coffee.ipsl.jussieu.fr/pub/linux/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.leg.uct.ac.za/pub/linux/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.tu-chemnitz.de/pub/linux/sunsite.unc-mirror/distributions/texstar/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.ussg.iu.edu/linux/pclinuxos/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://spout.ussg.indiana.edu/linux/pclinuxos/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.uwsg.indiana.edu/linux/pclinuxos/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://ftp.nl.freebsd.org/os/Linux/distr/texstar/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games
# rpm http://distro.ibiblio.org/pub/linux/distributions/texstar/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games 





Save it as root, open Synaptic, and change the preferences to point to the correct repo.


Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3980
Re: Synaptic Hangs
« Reply #23 on: September 16, 2010, 04:31:00 AM »
Did you open a text editor as root and paste in the contents, then save it as /etc/apt/sources.list?

When you open synaptic you should then be able to edit the preferences to select the best mirror for where you live.
-----------
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

Bonzini

  • Guest
Re: Synaptic Hangs
« Reply #24 on: October 23, 2010, 07:10:57 PM »
23 October 2010

Hello and greetings.
    If I may I would like to post a problem similar to Newbe1 (date originally posted 24 August 2010.) When I tried to start Synaptic a couple of weeks ago I got the same error messages as Newbe1. Since then I've been trying the first couple of suggestions the more expert users have posted. I have now been trying the commands: rm -f /var/lib/rpm/_db*; and: rpm -vv --rebuilddb. So far this is what I gots.

[root@localhost ~]# rm -f/var/lib/rpm/_db*
rm: invalid option -- '/'
Try `rm --help' for more information.
[root@localhost ~]# rm -f /var/lib/rpm/_db*
[root@localhost ~]# rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.5215
D: creating directory /var/lib/rpmrebuilddb.5215
D: opening old database with dbapi 3
D: opening  db environment /var/lib/rpm/Packages mpool:joinenv


Right now the konsole window doesn't show any other activity. Is it stuck? Did I do something wrong? Is I screwed big time? Or do I need to wipe the hard drive and start all over? (Meh!) Any thing you can can come up with would be very helpful. Thanks a heap!

Bonz

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Synaptic Hangs
« Reply #25 on: October 26, 2010, 11:33:14 AM »
23 October 2010

Hello and greetings.
    If I may I would like to post a problem similar to Newbe1 (date originally posted 24 August 2010.) When I tried to start Synaptic a couple of weeks ago I got the same error messages as Newbe1. Since then I've been trying the first couple of suggestions the more expert users have posted. I have now been trying the commands: rm -f /var/lib/rpm/_db*; and: rpm -vv --rebuilddb. So far this is what I gots.

[root@localhost ~]# rm -f/var/lib/rpm/_db*
rm: invalid option -- '/'
Try `rm --help' for more information.
[root@localhost ~]# rm -f /var/lib/rpm/_db*
[root@localhost ~]# rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.5215
D: creating directory /var/lib/rpmrebuilddb.5215
D: opening old database with dbapi 3
D: opening  db environment /var/lib/rpm/Packages mpool:joinenv


Right now the konsole window doesn't show any other activity. Is it stuck? Did I do something wrong? Is I screwed big time? Or do I need to wipe the hard drive and start all over? (Meh!) Any thing you can can come up with would be very helpful. Thanks a heap!

Bonz


That last rpm command should produce pages of output, and it will pause at times...  give it a good 15+ minutes; the amount of time it takes is dependent on the size of your install (# of rpms)..  if you have alot of "stuff" and a slower PC it could take quite awhile, while a "Mini" install on a faster machine will complete the command in less than a minute.
« Last Edit: October 26, 2010, 02:24:25 PM by travisn000 »

Online Georgetoon

  • Hero Member
  • *****
  • Posts: 3185
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Synaptic Hangs
« Reply #26 on: October 26, 2010, 12:23:02 PM »
One time several years ago, my power went out and my Linux system crashed big time.  I had to reinstall grub (another distro, not PCLinuxOS). 

Ever since then, I've always run a UPS (Uninterruptible power supply).

In fact, just the other day, I had power go down and then come right up again, but my system never stopped. The battery back-up kicked in and when power came on a few moments later, I was still up and running.  Plus, the UPS has spike protection, etc.

Even if you're in the middle of installing from Synaptic, the worst case scenario is Synaptic stops and gives you a message to continue or not.  (I believe it's always correct to answer "no."  Can someone verify this for me?).   

The UPS gives you enough time to safely save your work, close applications, and shut down. When power comes back on and you're back on the internet, you can launch Synaptic and simply start over.

I know this doesn't solve your current situation, but it's something to file away so you avoid this from happening again.
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Bonzini

  • Guest
Re: Synaptic Hangs
« Reply #27 on: October 27, 2010, 12:29:46 AM »
25 October 2010

Hello, and thanks for your suggestion.


    I've input the two commands again -- and waited -- for almost an hour now. So far nothing. The cursor is still in its place on the left side of the window below the last message displayed. I don't know if this will help: I've been tooling around the internet and/or play a game while I've been waiting any action in the Konsole window. Don't know if this hinders the process or not. It may also help to say that I'm a beginner with pclinux. Hope I didn't cause any misconceptions there.   :-[ Thanks for your time.

Bonz

Bonzini

  • Guest
Re: Synaptic Hangs
« Reply #28 on: October 28, 2010, 09:43:08 AM »
28 October 2010

Hello Again,
    I'm still having the problem with Synaptic that I mentioned earlier. Actually, I've let my system sit with that last command running for over 48 hours.  :-\ Perhaps Synaptic is stuck in an infinite loop? May I have some more input on this please? Thanks.

Bonz

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11521
  • ----IOFLU----
Re: Synaptic Hangs
« Reply #29 on: October 28, 2010, 10:03:22 AM »
28 October 2010

Hello Again,
    I'm still having the problem with Synaptic that I mentioned earlier. Actually, I've let my system sit with that last command running for over 48 hours.  :-\ Perhaps Synaptic is stuck in an infinite loop? May I have some more input on this please? Thanks.

Bonz

Your last two replies are telling us a story rather than showing us useful information. Run the commands from a newly opened terminal, then copy/paste the results to your next reply, including the prompt, command, and output to the point of the hang, so we can see what you see, rather than your description of what you see.
Old-Polack

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



Lest we forget...