You are not logged in.

#1 2011-10-22 10:49:06

giowck
Member
Registered: 2011-07-13
Posts: 77

[SOLVED] Initscripts update failed

Targets (1): initscripts-2011.10.2-1

Total Download Size:    0.02 MB
Total Installed Size:   0.12 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
 initscripts-2011.1...    21.8K  532.2K/s 00:00:00 [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
error: failed to commit transaction (conflicting files)
initscripts: /etc/profile.d/locale.sh exists in filesystem
Errors occurred, no packages were upgraded.

any idea?

Last edited by giowck (2011-10-22 10:51:17)

Offline

#2 2011-10-22 10:50:11

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: [SOLVED] Initscripts update failed


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

#3 2011-10-22 10:50:55

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] Initscripts update failed

Yes, read the news on the front page.

PS. Despite that news item, I predict at least a half dozen other threads like this one. Possibly a full dozen. Showing that not only do many people not read the news, they also do not search the forums or do any other kinds of research.

PPS. Nothing against you personally, giowck. In fact, you get a pass, because this issue has not been raised on the forums yet. But now that the forums also address this issue, there's no excuse whatsoever for anyone who will post a new thread about this.

Last edited by Gusar (2011-10-22 10:56:56)

Offline

#4 2011-10-22 10:51:01

giowck
Member
Registered: 2011-07-13
Posts: 77

Re: [SOLVED] Initscripts update failed

Thanks, forgot to check the news page.

ps. since I'm regularly updating my system and didn't encounter any issue so far, I just forgot to check the news tongue

Last edited by giowck (2011-10-22 11:29:28)

Offline

#5 2011-10-22 11:16:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Initscripts update failed

Gusar wrote:

I predict at least a half dozen other threads like this one. Possibly a full dozen. Showing that not only do many people not read the news, they also do not search the forums or do any other kinds of research.

Sadly, I suspect that your higher estimation will likely be the more accurate.

This thread should probably be stickied for the time it takes for this to work its way through the community.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2011-10-22 13:13:48

kraxor
Member
From: Szeged, Hungary
Registered: 2010-10-30
Posts: 12

Re: [SOLVED] Initscripts update failed

Can you really expect all users to read the news page? I for one don't visit archlinux.org regularly and sometimes there are no news updates for weeks. I know you can subscribe to the RRS feed but some people don't use any feed reader at all.

I think pacman should (be able to) display these kinds of messages. Or better yet, pacman could ask the user whether they want to proceed with the deletion of the conflicting file or not.

P.s.: luckily Google already lists this thread as 2nd search result.

Last edited by kraxor (2011-10-22 13:14:59)

Offline

#7 2011-10-22 13:18:16

SidK
Member
Registered: 2011-03-03
Posts: 116

Re: [SOLVED] Initscripts update failed

I don't like RSS either, but there isn't really an excuse not to subscribe to the arch-announce mailing list. That's how I found out about this news item.

Offline

#8 2011-10-22 13:37:00

birdflesh
Member
From: Greece
Registered: 2010-08-04
Posts: 97

Re: [SOLVED] Initscripts update failed

Couldn't the install script of the package handle the deletion or backing up of the old /etc/profile.d/locale.sh ?
I'm not complaining, I'm just curious about this.

Offline

#9 2011-10-22 13:44:09

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: [SOLVED] Initscripts update failed

No, because it was generated every boot. It can handle files in packages, but not files generated AFTER the install, not in the install itself.


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

#10 2011-10-22 14:01:38

birdflesh
Member
From: Greece
Registered: 2010-08-04
Posts: 97

Re: [SOLVED] Initscripts update failed

Not really. Install scripts' purpose is to execute commands before or after installing, upgrading or removing some package.
I'm guessing that certain commands like rm or mv are to be avoided for security reasons.
I would be glad if anyone can confirm this or point me to some related info.

Offline

#11 2011-10-22 18:16:11

CheesyBeef
Member
Registered: 2008-06-04
Posts: 190

Re: [SOLVED] Initscripts update failed

Thanks for posting this - found out of the problem before I updated.

Offline

#12 2011-10-22 19:34:54

phoric
Member
From: Seattle, WA
Registered: 2011-10-17
Posts: 22

Re: [SOLVED] Initscripts update failed

I'm glad someone asked about this. I sure wouldn't have thought to check the news page every single time I want to run pacman. This was the first page to show up in Google.

Last edited by phoric (2011-10-22 19:36:35)

Offline

#13 2011-10-22 19:36:34

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

Re: [SOLVED] Initscripts update failed

phoric wrote:

I'm glad someone asked about this. I sure wouldn't have thought to check the news page every single time I want to run pacman.

It's enough you check the news, forums, bug reposts, maybe the mailing list and the wiki when you run into some problems, not before every 'pacman -Syu'.

phoric wrote:

This was the first page to show up in Google.

You're doing it wrong ;P

Last edited by karol (2011-10-22 19:39:41)

Offline

#14 2011-10-22 19:38:12

phoric
Member
From: Seattle, WA
Registered: 2011-10-17
Posts: 22

Re: [SOLVED] Initscripts update failed

karol wrote:

It's enough you check the news, forums, bug reposts, maybe the mailing list and the wiki when you run into some problems, not before every 'pacman -Syu'.

Actually this is the first time in recent memory I've encountered any issue with updates. Even if it is a minor one.

Last edited by phoric (2011-10-22 19:41:36)

Offline

#15 2011-10-23 14:12:23

JamieKitson
Member
From: UK
Registered: 2010-10-18
Posts: 161
Website

Re: [SOLVED] Initscripts update failed

SidK wrote:

I don't like RSS either, but there isn't really an excuse not to subscribe to the arch-announce mailing list.

Good point, especially when there's so few posts.

Offline

#16 2011-10-23 17:05:17

cbowman57
Member
Registered: 2011-08-21
Posts: 77

Re: [SOLVED] Initscripts update failed

error: failed to commit transaction (conflicting files)
initscripts: /etc/profile.d/locale.sh exists in filesystem

I know this is already solved but to me the solution is suggested in the terminal.  Even without reading the news it should be obvious that locale.sh needs to be renamed or removed before the upgrade can be completed.

Just sayin'... smile

Offline

#17 2011-10-23 19:01:44

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED] Initscripts update failed

Gusar wrote:

Yes, read the news on the front page.

PS. Despite that news item, I predict at least a half dozen other threads like this one. Possibly a full dozen. Showing that not only do many people not read the news, they also do not search the forums or do any other kinds of research.

PPS. Nothing against you personally, giowck. In fact, you get a pass, because this issue has not been raised on the forums yet. But now that the forums also address this issue, there's no excuse whatsoever for anyone who will post a new thread about this.

My search abilities seem to be failing me.  I read the news but...

If . /etc/rc.conf fails in your login shell, please read the full announcement.

And that is where?

Offline

#18 2011-10-23 19:03:12

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

Re: [SOLVED] Initscripts update failed

David Batson wrote:
Gusar wrote:

Yes, read the news on the front page.

PS. Despite that news item, I predict at least a half dozen other threads like this one. Possibly a full dozen. Showing that not only do many people not read the news, they also do not search the forums or do any other kinds of research.

PPS. Nothing against you personally, giowck. In fact, you get a pass, because this issue has not been raised on the forums yet. But now that the forums also address this issue, there's no excuse whatsoever for anyone who will post a new thread about this.

My search abilities seem to be failing me.  I read the news but...

If . /etc/rc.conf fails in your login shell, please read the full announcement.

And that is where?

Below.
The first line is the TL;DR "executive summary" :-)

Offline

#19 2011-10-23 19:23:00

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED] Initscripts update failed

karol wrote:

Below.
The first line is the TL;DR "executive summary" :-)

Just Greek to me.  I suppose a link would be too much to ask for...

EDIT:  Hmm, I guess you are saying this is the "full announcement".
http://www.archlinux.org/news/initscrip … -required/

Last edited by David Batson (2011-10-23 19:27:24)

Offline

#20 2011-10-23 19:28:34

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

Re: [SOLVED] Initscripts update failed

David Batson wrote:
karol wrote:

Below.
The first line is the TL;DR "executive summary" :-)

Just Greek to me.  I suppose a link would be too much to ask for...

Not sure if you're referring to the content of the announcement or just to the localization of said announcement. It you mean the latter, here it is:

Changes to locale handling:

/etc/profile.d/locale.sh is now a static file that sources the correct config files in order to set your locale, rather than being generated at boot. The benefit of this is one less write to /etc, and it allows changes to the locale to take effect without rebooting (just relogin).

We add support for /etc/locale.conf. The settings in this file takes precedence over /etc/rc.conf, and those who use shells that cannot source /etc/rc.conf are required to move to this new format. /etc/locale.conf contains a new-line separated list of variable assignments. The variables we support are LANG as well as the LC_* variables (with the exception of LC_ALL). The format is shared with systemd.

Edit: Yes, that's exactly what I meant :-)

Last edited by karol (2011-10-23 19:29:11)

Offline

#21 2011-10-23 22:35:28

UrbanMyth
Member
Registered: 2011-10-23
Posts: 1

Re: [SOLVED] Initscripts update failed

Question: can the Arch devs not add the newsposts to pacman.

I know on gentoo that anytime there is a something that requires end-user intervention, a news post is added via the package manager; and can be read by the end-user when/if the problem arises. The news post can either contain the fix; or a link to the page with the fix on it.

As a newer Arch user; I tend to find I go straight to google before checking the website - I forget about the website sad.
But if the answer was right there in front of the end-user; one would think that threads like this become less of a necessity

Just a suggestion ...

Offline

#22 2011-10-23 22:39:39

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

Re: [SOLVED] Initscripts update failed

UrbanMyth wrote:

Question: can the Arch devs not add the newsposts to pacman.

I know on gentoo that anytime there is a something that requires end-user intervention, a news post is added via the package manager; and can be read by the end-user when/if the problem arises. The news post can either contain the fix; or a link to the page with the fix on it.

As a newer Arch user; I tend to find I go straight to google before checking the website - I forget about the website sad.
But if the answer was right there in front of the end-user; one would think that threads like this become less of a necessity

Just a suggestion ...

Subscribe to arch-announce mailing list http://mailman.archlinux.org/mailman/li … h-announce

Unfortunately even if e.g. post_install message is printed some users come to the mailing list, forum or IRC and ask for help because they missed it or they still don't know what to do.

Offline

#23 2011-10-24 01:46:58

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: [SOLVED] Initscripts update failed

@kraxor - I'm not a fan of RSS either.  To get around RSS I suggest this package aur/rss2email-xdg-git

Offline

#24 2011-10-26 11:59:56

ssivil
Member
Registered: 2011-09-23
Posts: 28

Re: [SOLVED] Initscripts update failed

I sure wish a link to the FULL announcement was provided.  My display manager doesn't work now, and creating locale.conf with the following two lines doesn't work (with or without locale.sh:

LANG=en_US.UTF-8
LC_MESSAGES=C

Offline

#25 2011-10-26 17:17:12

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

Re: [SOLVED] Initscripts update failed

ssivil wrote:

I sure wish a link to the FULL announcement was provided.

The full announcement is on the front page ...

As for the exact wording, I'm not a native English speaker so I can't say if it's confusing or not.

Offline

Board footer

Powered by FluxBB