You are not logged in.

#1 2012-12-07 23:44:55

adamstjohn
Member
Registered: 2012-05-10
Posts: 6

[SOLVED] pacman.conf simple line error or... ?

So here's what happened:

I was trying to enable the [multilib] repository. (As according to https://wiki.archlinux.org/index.php/Multilib).

Thus, I went ahead and uncommented the following from /etc/pacman.conf:

[multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

To edit /etc/pacman.conf, I used LibreOffice Writer. I saved the file as a .txt document and made sure that it is properly renamed as pacman.conf.

Next, I went to update pacman's package list by running pacman with the -Sy switch.

And then, voila:

# pacman -Sy
error: config file /etc/pacman.conf, line 1: All directives must belong to a section.

However, when looking at pacman.conf I don't see any errors in line 1. Nor do I see any problems with directives.

Here are the contents of pacman.conf:
http://pastebin.com/raw.php?i=XWh9eagr

Is there a simple problem with a line in pacman.conf --- or is it because I used LibreOffice Writer instead of Vi? Or?

Is the answer to this right in front of my nose?

Thank ya'll..

Last edited by adamstjohn (2012-12-08 00:31:28)

Offline

#2 2012-12-07 23:53:25

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

Re: [SOLVED] pacman.conf simple line error or... ?

adamstjohn wrote:

or is it because I used LibreOffice Writer instead of Vi?.

LibreOffice Writer is a word processor - it will do odd things to your .conf files. Use a text editor. If you don't want to use vi, then use nano, or gedit or anything other than a word processor.

Moving to NC: not at all related to pacman...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2012-12-08 00:30:42

adamstjohn
Member
Registered: 2012-05-10
Posts: 6

Re: [SOLVED] pacman.conf simple line error or... ?

Thank you, you were correct: rewriting the file using Vi, rather than LibreOffice Writer, solved the problem.

I've never had that problem before, thank you.

Offline

Board footer

Powered by FluxBB