You are not logged in.

#1 2012-01-29 16:40:57

Linoman
Member
From: Barcelona, Spain
Registered: 2010-12-04
Posts: 40

[SOLVED] Hating pacman right now

Hello everybody, I've been a happy arch user for some years now (4 I think) but now after some upgrades 2 weeks ago I can't use pacman.

[root@Mexicola ~]# sudo 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
[root@Mexicola ~]# sudo rm /var/lib/pacman/db.lck
rm: cannot remove `/var/lib/pacman/db.lck': No such file or directory

I don't have space problems as with this other post https://bbs.archlinux.org/viewtopic.php?pid=1045162

I tried reinstalling everything like in this other post https://bbs.archlinux.org/viewtopic.php?id=95007 but doesn't work after fixing package versions. Tar doesn't overwrite anything because it's read only.

usr/share/man/man3/ASN1_STRING_length_set.3.gz
tar: usr/share/man/man3/ASN1_STRING_length_set.3.gz: Cannot create symlink to `ASN1_STRING_length.3.gz': File exists
usr/share/man/man3/RSA_new.3.gz
tar: usr/share/man/man3/RSA_new.3.gz: Cannot open: File exists
usr/share/man/man3/DES_ecb3_encrypt.3.gz
tar: usr/share/man/man3/DES_ecb3_encrypt.3.gz: Cannot create symlink to `des.3.gz': File exists
usr/share/man/man3/EVP_EncryptInit.3.gz
tar: usr/share/man/man3/EVP_EncryptInit.3.gz: Cannot open: File exists
usr/share/man/man3/EVP_PKEY_ctrl_str.3.gz
tar: usr/share/man/man3/EVP_PKEY_ctrl_str.3.gz: Cannot create symlink to `EVP_PKEY_CTX_ctrl.3.gz': File exists
usr/share/man/man7/des_modes.7.gz
tar: usr/share/man/man7/des_modes.7.gz: Cannot open: File exists
tar: usr: Cannot utime: Read-only file system
tar: usr: Cannot change ownership to uid 0, gid 0: Read-only file system
tar: Exiting with failure status due to previous errors

Any help wpuld be appreciated.

Last edited by Linoman (2012-02-06 12:26:20)

Offline

#2 2012-01-29 16:55:07

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Hating pacman right now

So the real question is -- why is your root read only? This is the cause of all your problems.

Offline

#3 2012-02-01 00:15:46

Linoman
Member
From: Barcelona, Spain
Registered: 2010-12-04
Posts: 40

Re: [SOLVED] Hating pacman right now

Sorry for the late replay. So what number should I use with chmod -r 750 /root/?

I was thinking this would be the optimal solution https://wiki.archlinux.org/index.php/Pa … upgrade.21

Any advice?

Offline

#4 2012-02-01 03:11:15

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: [SOLVED] Hating pacman right now

falconindy means root as in '/'. Post your /etc/mtab.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#5 2012-02-01 04:20:01

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Hating pacman right now

it's more likely that /etc/fstab has no entry for the / partition. Seems to be the latest wtf going around...

Offline

#6 2012-02-02 18:57:57

Linoman
Member
From: Barcelona, Spain
Registered: 2010-12-04
Posts: 40

Re: [SOLVED] Hating pacman right now

What the...? When does this happened?

cat /etc/fstab
/dev/sda6       /media/Fatboy   ntfs    defaults        0       0
tmpfs   /tmp    tmpfs   nodev,nosuid    0       0

Let me fix this and see if the scripts works. Anybody knows why this happened?

Offline

#7 2012-02-02 19:27:49

Linoman
Member
From: Barcelona, Spain
Registered: 2010-12-04
Posts: 40

Re: [SOLVED] Hating pacman right now

I dont have root on my fstab but I can't mount anything because it's already mounted. Also I can't edit fstab, its read-only.

Any ideas?

Last edited by Linoman (2012-02-02 19:34:14)

Offline

#8 2012-02-02 19:29:13

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: [SOLVED] Hating pacman right now

mount -o remount,rw /

Then edit your fstab.

Last edited by Stebalien (2012-02-02 19:29:59)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#9 2012-02-02 19:42:57

Linoman
Member
From: Barcelona, Spain
Registered: 2010-12-04
Posts: 40

Re: [SOLVED] Hating pacman right now

Thank you Stebalien and FalconIndy. My fstab was messed up. After that a simple reboot (just to be sured everything loaded nicely) and pacman worked very well. Well I still have to upgrade it to pacman 4.0.

Thanks guys. This can be marked as solved.

Still, can somebody tell me what happened to my fstab? It was ok a few weeks ago.

Offline

#10 2012-02-02 19:58:11

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Offline

#11 2012-02-02 21:35:26

Linoman
Member
From: Barcelona, Spain
Registered: 2010-12-04
Posts: 40

Re: [SOLVED] Hating pacman right now

Thanks falconindy

Marked as solved

Offline

#12 2012-02-02 21:40:56

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOLVED] Hating pacman right now

Linoman wrote:

Thanks falconindy

Marked as solved

Don't forget to edit the first post and change 'pacman' in the topic title to 'myself'.


ᶘ ᵒᴥᵒᶅ

Offline

#13 2012-02-02 21:59:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Hating pacman right now

Don't forget to actually mark the thread as solved ;P

Offline

#14 2012-02-03 07:51:04

Linoman
Member
From: Barcelona, Spain
Registered: 2010-12-04
Posts: 40

Re: [SOLVED] Hating pacman right now

Don't forget to edit the first post and change 'pacman' in the topic title to 'myself'.

Why myself? I didn't break fstab!!

Offline

Board footer

Powered by FluxBB