You are not logged in.

#1 2011-12-19 20:17:34

quasifilmie
Member
Registered: 2011-10-27
Posts: 296

[SOLVED] Weird Pacman Error Can't Update System

The error message

error: failed to commit transaction (conflicting files)
filesystem: /etc/mtab exists in filesystem
Errors occurred, no packages were upgraded.

  

I got this message and then I was told some issue about mounting as expected. I rebooted and I get the same error message as above. Hopefully this can be fixed easily smile

About a week and a half ago. I accidentally extracted an Ubuntu ISO (maybe an arch one) into the root filesystem. It started so quick but I aborted and removed at least most of those files.

Last edited by quasifilmie (2011-12-21 23:04:47)

Offline

#2 2011-12-19 20:26:24

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Weird Pacman Error Can't Update System

This has been discussed on the mailing lists.  You need to use pacman's --force option.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2011-12-19 21:21:06

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: [SOLVED] Weird Pacman Error Can't Update System

For other users:

Currently, this can occur if you have the [testing] repository enabled. Users that have this repository enabled should constantly watch the mailing lists.

on arch-dev-public:
http://mailman.archlinux.org/pipermail/ … 22242.html

on arch-general:
http://mailman.archlinux.org/pipermail/ … 23507.html

Once this change hits the normal repositories, a news article will be posted. [testing] users need to watch the mailing lists to be aware before that time.


Arch i686 on Phenom X4 | GTX760

Offline

#4 2011-12-20 16:48:56

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Weird Pacman Error Can't Update System


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2011-12-21 00:08:47

sonoran
Member
From: sonoran desert
Registered: 2009-01-12
Posts: 192

Re: [SOLVED] Weird Pacman Error Can't Update System

Happened to me also today:

(29/29) checking for file conflicts
error: failed to commit transaction (conflicting files)
filesystem: /etc/mtab exists in filesystem
Errors occurred, no packages were upgraded.

Looking in /etc I found the mtab file and another named mtab.fuselock, a 0 byte file dated 12-06.I renamed both files after which the pacman update completed successfully and left an mtab link in /etc.

I don't have the Testing repo enabled at the moment.

Last edited by sonoran (2011-12-21 00:09:40)

Offline

#6 2011-12-21 00:26:01

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

Re: [SOLVED] Weird Pacman Error Can't Update System

It has already been pushed to [core] http://www.archlinux.org/packages/core/any/filesystem/
You have the announcement on the main page: http://www.archlinux.org/ and on the Planet + ML.

Offline

#7 2011-12-21 00:42:20

jaco
Member
From: Toulouse, France
Registered: 2011-03-17
Posts: 149

Re: [SOLVED] Weird Pacman Error Can't Update System

If you have NFS mounts, check that your mounted path has a trailing / (in the first field of /etc/fstab), too...

Offline

#8 2011-12-21 01:21:17

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] Weird Pacman Error Can't Update System

i usually update without reading the news,which is not recommended that i already know.But today i was checking the homepage to see if firefox 9 has come on stable repos.i was lucky to read the filesystem news  announcement and did the update as recomended by tom.But how to fix pacman if someone didnt  use '--force' to upgrade the filesystem?

Last edited by hadrons123 (2011-12-21 01:22:24)


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#9 2011-12-21 01:40:55

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

Re: [SOLVED] Weird Pacman Error Can't Update System

hadrons123 wrote:

But how to fix pacman if someone didnt  use '--force' to upgrade the filesystem?

But what *did* you (or that person) do?
Did pacman update the system w/o using '--force'?

Offline

#10 2011-12-21 01:47:25

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] Weird Pacman Error Can't Update System

i did a

pacman -S filesystem --force

my pacman is  fine.but i was talking about someone who didnt use the -f switch like the OP.


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#11 2011-12-21 01:55:06

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

Re: [SOLVED] Weird Pacman Error Can't Update System

hadrons123 wrote:

i did a

pacman -S filesystem --force

my pacman is  fine.but i was talking about someone who didnt use the -f switch like the OP.

Errors occurred, no packages were upgraded.

Nothing happened.

Offline

#12 2011-12-21 01:58:14

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] Weird Pacman Error Can't Update System

[root@DRAGONFLY ~]# pacman -S filesystem --force
resolving dependencies...
looking for inter-conflicts...

Targets (1): filesystem-2011.12-2

Total Download Size:    0.00 MB
Total Installed Size:   0.06 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
 filesystem-2011.12...     4.1K  186.6K/s 00:00:00 [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) upgrading filesystem                         [######################] 100%
[root@DRAGONFLY ~]# 

this is what happened.karol, what are you trying to do here? i already said my pacman is fine.

Last edited by hadrons123 (2011-12-21 01:59:46)


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#13 2011-12-21 02:26:35

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

Re: [SOLVED] Weird Pacman Error Can't Update System

You asked what would happen to someone like OP, who didn't use '--force': nothing would happen. His system wouldn't be updated as it's written in pacman output posted by OP in the first post.

Offline

#14 2011-12-21 03:52:48

sonoran
Member
From: sonoran desert
Registered: 2009-01-12
Posts: 192

Re: [SOLVED] Weird Pacman Error Can't Update System

The update worked for me without --force after I renamed /etc/mtab. Maybe pacman is smarter than we suspect.

Offline

#15 2011-12-21 04:02:34

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] Weird Pacman Error Can't Update System

However, in this particular case it is needed as deleting /etc/mtab manually would break pacman.

as per the homepage latest news.

what i understand is  that if you dont use -f switch it would break pacman(so that you wont be able to use pacman following that).maybe i didn't get the implication of the qoute properly.

Last edited by hadrons123 (2011-12-21 04:03:30)


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#16 2011-12-21 11:28:46

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

Re: [SOLVED] Weird Pacman Error Can't Update System

Offline

#17 2011-12-21 11:48:31

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] Weird Pacman Error Can't Update System

sonoran wrote:

The update worked for me without --force after I renamed /etc/mtab. Maybe pacman is smarter than we suspect.

It works if you don't have disk space checking enabled, but pacman will choke if you do have that feature enabled. That's why the news item states that you should use --force, other methods might fail depending on the user's configuration.

Offline

#18 2011-12-21 18:54:30

scjet
Banned
Registered: 2011-07-23
Posts: 172

Re: [SOLVED] Weird Pacman Error Can't Update System

sonoran wrote:

The update worked for me without --force after I renamed /etc/mtab. Maybe pacman is smarter than we suspect.

sry, but you're wrong.
I renamed/moved /etc/mtab but it still failed with the same error messge.
so ya, others are right here, you have to usee the "--force" option for it to complete the upgrade.
(ie: pacman -Syu --force) ...


The "BSD" things in life are "Free", and "Open", and so is "Arch"

Offline

#19 2011-12-21 18:58:26

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] Weird Pacman Error Can't Update System

scjet wrote:
sonoran wrote:

The update worked for me without --force after I renamed /etc/mtab. Maybe pacman is smarter than we suspect.

sry, but you're wrong.
I renamed/moved /etc/mtab but it still failed with the same error messge.
so ya, others are right here, you have to usee the "--force" option for it to complete the upgrade.
(ie: pacman -Syu --force) ...

Did you read my reply? He's not wrong, the success of manually deleting the file just depends on your pacman config.

Offline

#20 2011-12-21 21:00:16

hap
Member
Registered: 2011-12-21
Posts: 3

Re: [SOLVED] Weird Pacman Error Can't Update System

Global Updating ERROR

My first ARch installation, so far; no testing repo enabled.


# pacman -Syu

error: failed to commit transaction (conflicting files)
initscripts: /etc/profile.d/locale.sh exists in filesystem
Errors occurred, no packages were upgraded.

1. --force: no success

2. renamed:
# mv locale.sh locale.org

Global Updating OK

Offline

#21 2011-12-21 21:09:43

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: [SOLVED] Weird Pacman Error Can't Update System

Hap, It's an earlier issue, as also covered if you read the news on the main page

https://www.archlinux.org/news/initscri … -required/

Offline

#22 2011-12-21 21:22:40

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

Re: [SOLVED] Weird Pacman Error Can't Update System

mcmillan wrote:

Hap, It's an earlier issue, as also covered if you read the news on the main page

https://www.archlinux.org/news/initscri … -required/

Yup.
Unfortunately checking all the main page news since the "release iso" you're using (my guess is 2011.08.19) is the only way to perform a successful update.

Offline

#23 2011-12-21 21:56:53

hap
Member
Registered: 2011-12-21
Posts: 3

Re: [SOLVED] Weird Pacman Error Can't Update System

mcmillan
Today 19:09:43
Hap, It's an earlier issue, as also covered if you read the news on the main page
https://www.archlinux.org/news/initscri … -required/


ok, thank you, I begin to understand (first serious linux steps)!

Offline

#24 2011-12-21 22:05:15

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

Re: [SOLVED] Weird Pacman Error Can't Update System

hap, if you want to quote some post, use the 'Quote' link in the bottom right corner of the post you want to quote.
Check my previous post to see how nice it looks when done properly :-)

Offline

#25 2011-12-21 23:04:09

quasifilmie
Member
Registered: 2011-10-27
Posts: 296

Re: [SOLVED] Weird Pacman Error Can't Update System

I was not sure if I should use the --force switch so I posted here.  Pacman -Syuf worked fine without error. Marking as solved.

Offline

Board footer

Powered by FluxBB