Difference between revisions of "Pacman troubleshooting"

no edit summary
imported>Verityproductions
imported>Verityproductions
Line 44: Line 44:


{{tip|Should there still be a problem with installing software packages, then please raise this issue on '''[http://forum.manjaro.org/index.php The Official Manjaro Forum]''' for help and advice.}}
{{tip|Should there still be a problem with installing software packages, then please raise this issue on '''[http://forum.manjaro.org/index.php The Official Manjaro Forum]''' for help and advice.}}
== "Warning: Configuration file...not recognized" Error ==
Manjaro's package manager - '''[[pacman]]''' - uses a file called ''mirrorlist'' to tell it the internet addresses of the Manjaro servers in order to download updates and software applications from them. This error will therefore occur if the addresses contained in the mirrorlist file have not been listed properly, resulting in pacman being able to connect to them. Another tell-tale sign is that this problem will also be encountered immediately after:
* Installing Manjaro (i.e. having edited the mirrorlist file during the installation process), or
* Editing the mirrorlist file at a later point.
=== Editing the Mirrorlist File ===
It will be necessary to (re)edit the mirrorlist file to correct the problem. The syntax of the command to edit the mirrorlist is:
sudo [text editor] /etc/pacman.d/mirrorlist
For example, if you wish to edit the file within the terminal using ''nano'' (a standard terminal-based text editor) then enter:
sudo nano /etc/pacman.d/mirrorlist
Otherwise - if you have installed the full version of Manjaro (i.e. not the NET-Edition) - you may find it easier to use the ''gedit'' text editor instead. This will open the mirrorlist file up as a document, making it easier to read and edit. To use gedit instead, the command is:
sudo gedit /etc/pacman.d/mirrorlist
Once opened, the mirrorlist file presented should look similar to this (text has been coloured for illustrative purposes):
# Server list generated by rankmirrors on 2012-10-07
##
## Manjaro Linux repository mirrorlist
## Generated on 2012-09-11
##
## France
# http://manjarolinux.polymorf.fr/$repo/$arch <font color="red">... 0.494</font color>
## Germany
# http://mirrors.mycraft.eu/manjaro/$repo/$arch <font color="red">... 0.367</font color>
# http://ftp.halifax.rwth-aachen.de/manjaro/$repo/$arch <font color="red">... 0.300</font color>
## Greece
# http://ftp.cc.uoc.gr/mirrors/linux/manjaro/$repo/$arch <font color="red">... 0.769</font color>
## United Kingdom
# http://repo.manjaro.org.uk/$repo/$arch <font color="red">... 0.518</font color>
## United States
# http://mirror.dacentec.com/manjaro/$repo/$arch <font color="red">... 0.887</font color>
<font color="green">Server =</font color> http://ftp.halifax.rwth-aachen.de/manjaro/$repo/$arch
<font color="green">Server =</font color> http://mirrors.mycraft.eu/manjaro/$repo/$arch
<font color="green">Server =</font color> http://manjarolinux.polymorf.fr/$repo/$arch
<font color="green">Server =</font color> http://repo.manjaro.org.uk/$repo/$arch
Lines beginning with a hash '#' will be ignored by pacman. As such, the top part of the file listing the names of countries followed by server addresses is actually there purely for your own information. Its purpose is to tell you which servers are available in what countries. The text coloured in <font color="red">red</font color> at the end of each address is there to tell you the download speed of the server. It is actually the bottom part of the file where the hashes have been removed that is intended to be used by pacman to connect to the manjaro servers. Notice that each of these lines begins with the command <font color="green">Server =</font color>.