Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Apr 21, 2011 2:33 am 
Offline

Joined: Thu Apr 21, 2011 2:25 am
Posts: 1
The following in a stack script results in a fresh Arch 2010.05 booting with the package database still locked:

Code:
# update pacman and do system update
pacman -Sy
pacman -S pacman --noconfirm
pacman-db-upgrade
pacman -Syu --noconfirm


Once booted, pacman reports:

Code:
[root@d1 ~]# pacman -Syu
:: Synchronizing package databases...
error: failed to init transaction (unable to lock database)
  if you're sure a package manager is not already
  running, you can remove /var/lib/pacman/db.lck


The obvious work-around is just add a line to the stack script to remove the db.lck file - but this probably shouldn't be necessary.


Top
   
 Post subject:
PostPosted: Tue Apr 26, 2011 6:01 am 
Offline
Newbie

Joined: Thu Sep 17, 2009 11:55 am
Posts: 3
Website: http://ericoc.com/
AOL: ericz
Location: Philadelphia, PA
Hi,

I saw this topic and fixed my Arch LAMP StackScript because I realized it was broken from the recent requirement of having to run "pacman-db-upgrade":

http://www.linode.com/stackscripts/view ... iptID=1480

The following series of commands seems to work for me, without causing any database locking problems or whatever:

pacman -Sy pacman --noconfirm
pacman-db-upgrade
pacman -Syu --noconfirm

It does take awhile for the -Syu to run though, since it's updating *everything*. Is it possible that you tried to run "pacman -Syu" over SSH while the original "pacman -Syu" from the StackScript was still going on?

If you're willing to redeploy to test it, you might want to watch your Linode's console to make sure the original "pacman -Syu" from the StackScript finishes before you run "pacman -Syu" again over SSH.

Hope this helps!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group