LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 10-29-2011, 09:54 PM   #1
foreverkdy1
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Rep: Reputation: Disabled
Arch Linux Update Error


Hello Forumers.
Currently I have installed new OS "Arch Linux" on my laptop. I setup the wireless network, so my internet works fine.
So I decided to give a update by typing
" # pacman -Syu "
Then it proceeds to download, and I typed once more to be sure and it started to download stuff, but in the end I got an error saying these:

:: Synchronizing package databases...
core is up to date
extra is up to date
community 530.0k 999.4K/s 00:00:01 [##################] 100%
::starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (58): linux-api-headers-3.0.1-1 tzdata-2011m-2 glibc-2.14-6 zlib-1.25-4 so on ......

Total Download Size: 0.00MB
Totla Installed Size: 411.11MB

Proceed with installation? [Y/n] y
(58/58) checking package integrity [##########]100%
(58/58) 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.

________________________________________________

I looked everywhere and could not find anything to solve it.
I even tried this but having trouble with it.
http://www.archlinux.org/news/initsc...tion-required/
I am a noob in linux. But I really want to learn it.

can someone please give me a step by step guide to solve this problem. (maybe relating to the link) I do known how to delete it, or proceed to it.

I would appreciate your help. Please no rude comments. Thank you.
 
Old 10-29-2011, 09:59 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,061

Rep: Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573
this type of error is a bit common in arch
just rename the file to *.old ( /etc/profile.d/locale.sh to locale.sh.old)

and rerun pacman

this also happens for some icons and such
 
Old 10-29-2011, 10:04 PM   #3
foreverkdy1
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
how do i renam?

thanks for your quick reply.
I really appreciate it.
How would you rename it?
Can you able to show me the command steps.
Thanks again.
 
Old 10-29-2011, 10:08 PM   #4
foreverkdy1
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
good news?

Hey, I think i just figured it out.
I typed rm -rf /etc/profile.d/locale.sh
and typed pacman -Syu
It redid the udpate, and everything seems to install right.
Now I get this message everytime i type "pacman -Syu"
# pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
there is nothing to do
_______________________________________
Do you think its now fixed?
And the command rm -rf /etc/profile.d/locale.sh delete the directory of "/etc/profile.d/locale.sh"
and why did that solve the problem if it did?
 
Old 10-29-2011, 10:39 PM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 12,061

Rep: Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573
a word of WARNING
do not make a habit of using "rm"
it is a VERY BAD idea to be using it on system files .
Making a .old or .bak ( backup) file is the BEST OPTION


for that file
Code:
su -
cd /etc/profile.d
mv locale.sh locale.sh.old

reason NOT to use "rm"
one - yes ONE small typo a single unintended < SPACE> hit the space bar and you UNINSTALL THE WHOLE OPERATING SYSTEM !!!
[quote]I typed rm -rf /etc/profile.d/locale.sh]/quote]
if you added a "space " here
Code:
 rm -rf / etc/profile.d/locale.sh
you will FORCE THE REMOVAL OF EVERYTHING IN /
-- not good --

Last edited by John VV; 10-29-2011 at 10:43 PM.
 
Old 10-30-2011, 07:25 AM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
I once experienced a glitch in pacman that caused a massive amount of such errors (and I still see them today sometimes form some packages, I assume it's those that haven't been updated since then).

I copied and pasted the part of the output that listed the bad files into an editor (there were hundreds of them), removed the extra text before and after the path usign search and replace, and ran this:

Code:
while read file; do rm "$file"; done < badfiles.txt
And that solved the problem.
 
Old 10-30-2011, 11:20 AM   #7
Dudley Dipstick
LQ Newbie
 
Registered: Nov 2009
Distribution: Arch, Slackware
Posts: 8

Rep: Reputation: 5
Often, the Arch homepage will have details on those sort of problems and how to address them. As Arch is a rolling release, it is good practice to check the homepage often.

I see that you checked that, but a network installation doesn't reproduce that problem, just an install of "core - local". If you find yourself re-installing again, you may want to check that you have the "core - remote" field checked rather than a local install from disk or usb.

Last edited by Dudley Dipstick; 10-30-2011 at 11:28 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VirtualBox broken after kernel update in Arch Linux MTK358 Linux - Software 10 09-06-2010 07:51 PM
[SOLVED] Arch Linux won't update! MTK358 Linux - General 3 08-14-2010 07:38 PM
Arch Linux update failed! MTK358 Linux - General 6 07-04-2010 07:47 PM
(NOT SOLVED) $DISPLAY not set error in ARCH Linux. mattvdh Linux - Newbie 9 06-02-2010 07:18 PM


All times are GMT -5. The time now is 08:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration