LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Arch Linux Update Error (https://www.linuxquestions.org/questions/linux-newbie-8/arch-linux-update-error-910877/)

foreverkdy1 10-29-2011 09:54 PM

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.

John VV 10-29-2011 09:59 PM

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

foreverkdy1 10-29-2011 10:04 PM

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.

foreverkdy1 10-29-2011 10:08 PM

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?

John VV 10-29-2011 10:39 PM

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 --

MTK358 10-30-2011 07:25 AM

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.

Dudley Dipstick 10-30-2011 11:20 AM

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.


All times are GMT -5. The time now is 10:15 AM.