You are not logged in.

#1 2015-12-02 01:20:50

ArchDoom
Member
Registered: 2015-12-01
Posts: 15

Can't Access /etc/pacman.conf

I first posted this problem https://bbs.archlinux.org/viewtopic.php … 5#p1583015 and I think I figured what the problem is. In order to fix this, I need to disable pacman from checking the signature until I get the right updates done and then I can switch it back on. In order to do that, I have to access pacman.conf, but I can't.

I did this:

sudo mousepad /etc/pacman.conf

and got an endless loop of error message saying

(mousepad:14853)GtkSourceView-CRITICAL **: gtk_source_style_scheme_get_id: assertion 'GTK_IS_SOURCE_STYLE_SCHEME (scheme)' failed

Either I'm trying a very dumb way to access pacman.conf or this runs deeper than I thought.

Offline

#2 2015-12-02 01:24:42

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

Re: Can't Access /etc/pacman.conf

I'm really struggling to understand how you installed Arch. You have a package conflict that doesn't seem possible using our repos, and you don't know how to edit a text file.

You edit pacman.conf the same way you edited fstab and mirrorlist and all of the other files in the install process, if you have installed Arch, that is.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-12-02 01:30:19

ArchDoom
Member
Registered: 2015-12-01
Posts: 15

Re: Can't Access /etc/pacman.conf

jasonwryan wrote:

I'm really struggling to understand how you installed Arch. You have a package conflict that doesn't seem possible using our repos, and you don't know how to edit a text file.

You edit pacman.conf the same way you edited fstab and mirrorlist and all of the other files in the install process, if you have installed Arch, that is.

I installed Arch about a year ago and worked with it for some time and then forgot about that laptop. I forgot a lot what I learned.
Don't know how that package conflict happened. Does it help knowing I installed lxde couple of days ago?

As for the editing the file, I got a notebook with notes about the whole installation process, I'll look into those parts big_smile

Last edited by ArchDoom (2015-12-02 01:30:58)

Offline

#4 2015-12-02 01:36:28

ArchDoom
Member
Registered: 2015-12-01
Posts: 15

Re: Can't Access /etc/pacman.conf

jasonwryan wrote:

I'm really struggling to understand how you installed Arch. You have a package conflict that doesn't seem possible using our repos, and you don't know how to edit a text file.

You edit pacman.conf the same way you edited fstab and mirrorlist and all of the other files in the install process, if you have installed Arch, that is.


Wait, wait. Can I edit pacman.conf in any text editor, just opening it as root?
Right now just opening mousepad as root is a problem on it's own. The thing is, I'm constantly going up and down my apartment because there's no room for my laptop and PC here, so just getting one piece of information I look up on wiki and running into another problem is making me walk up and down too many times. There must be some quick fix I'm not aware of.

Last edited by ArchDoom (2015-12-02 01:38:41)

Offline

#5 2015-12-02 01:49:27

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

Re: Can't Access /etc/pacman.conf

You don't use sudo to open X apps, you use gksudo or ksudo or something stupid like that. Man up and `sudo vim /etc/pacman.conf` FFS...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2015-12-02 01:51:54

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Can't Access /etc/pacman.conf

Please use the edit function to append information to your previous post if it is still that last in the thread. Unnecessary bumps are against our forum policy.

Yes, you can edit pacman.conf with any editor as long as you have root privileges. It's just a regular text file. In general, running graphical apps as root is discouraged. Use vim or nano or some other command-line text editor. Then you can edit it from any terminal without a full WM or DE installation.

Great if you have your own notes about what you did, but if you are this lost then it may be easier to back up anything that you want to save and start over with the beginners' guide. If you have forgotten how to edit system files then fixing this mess may take more time than it's worth, although it would also be a learning experience.


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#7 2015-12-02 01:51:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Can't Access /etc/pacman.conf

ArchDoom wrote:

Wait, wait. Can I edit pacman.conf in any text editor, just opening it as root?
Right now just opening mousepad as root is a problem on it's own. The thing is, I'm constantly going up and down my apartment because there's no room for my laptop and PC here, so just getting one piece of information I look up on wiki and running into another problem is making me walk up and down too many times. There must be some quick fix I'm not aware of.

This has to be a joke, right?  You want us to help with a quick fix for walking up and down stairs?  Um, an elevator.

You didn't know you could edit pacman.conf ig any text editor?  You really didn't install archlinux did you?

As for why you need to look up information on one computer to work on the other is beyond me.  I'm not sure I want to ask for fear of how odd the answer will be.  I'm really waiting for the other shoe to drop - there is clearly something (or a lot) you aren't telling us.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#8 2015-12-02 01:54:40

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Can't Access /etc/pacman.conf

simultaneous post
jinx@Trilby


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#9 2015-12-02 01:58:11

ArchDoom
Member
Registered: 2015-12-01
Posts: 15

Re: Can't Access /etc/pacman.conf

Trilby wrote:
ArchDoom wrote:

Wait, wait. Can I edit pacman.conf in any text editor, just opening it as root?
Right now just opening mousepad as root is a problem on it's own. The thing is, I'm constantly going up and down my apartment because there's no room for my laptop and PC here, so just getting one piece of information I look up on wiki and running into another problem is making me walk up and down too many times. There must be some quick fix I'm not aware of.

This has to be a joke, right?  You want us to help with a quick fix for walking up and down stairs?  Um, an elevator.

You didn't know you could edit pacman.conf ig any text editor?  You really didn't install archlinux did you?

As for why you need to look up information on one computer to work on the other is beyond me.  I'm not sure I want to ask for fear of how odd the answer will be.  I'm really waiting for the other shoe to drop - there is clearly something (or a lot) you aren't telling us.

I'm interested in Arch Linux, but this has to be the worst community I've ever seen. Sure you have all your documentations, but it's like you're all too proud to help out when someone shows lack of knowledge. I have to start somewhere.

Of course I knew I can edit pacman in text editor, but I showed you the problem with that: I couldn't open text editor as root. I did install it, but it was a year ago.
And the answer is not odd as to why I have to use 2 computers: The laptop with Arch on it can't access Internet because of the same problem I'm trying to fix.

Horrible community of holier than thou attitudes. Except Xyne who actually helped and was polite. I was just thinking I'll delete everything and start from scratch again, this time learning the Wiki instead of Internet guides on how to install it. But this community is off putting. Get off your high horse, sorry to disturb your holy throne with silly questions.

Offline

#10 2015-12-02 02:01:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Can't Access /etc/pacman.conf

Eh ... sorry.  I think.

I'm not sure why you are so disturbed by my post.  I'm trying to understand what is wrong.  You didn't say you couldn't access the internet on your arch computer.  If you can't, then changing pacman.conf isn't going to help.  You didn't say you couldn't open text editors as root - just mousepad.  We only know what you tell us - and what you've shared so far is very confusing.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#11 2015-12-02 02:10:18

ArchDoom
Member
Registered: 2015-12-01
Posts: 15

Re: Can't Access /etc/pacman.conf

Trilby wrote:

Eh ... sorry.  I think.

I'm not sure why you are so disturbed by my post.  I'm trying to understand what is wrong.  You didn't say you couldn't access the internet on your arch computer.  If you can't, then changing pacman.conf isn't going to help.  You didn't say you couldn't open text editors as root - just mousepad.  We only know what you tell us - and what you've shared so far is very confusing.

OK, so here's the full story:

Got back to the old laptop with Arch on it, enjoyed messing with Arch. Everything was fine until I tried to install language pack for Firefox. After that, Firefox wouldn't start. Messed around with that and figured the solution is to reinstall all dependencies. While I was at it I figured maybe that's why Steam doesn't launch either, so I reinstalled all Steam dependencies as well. That didn't fix Steam, but that's not important now.

So I thought Firefox is fixed, but turns out every page I wanted to visit was flagged as "risk" and couldn't load anything. That turned out not just be the case with Firefox, but with every package because of the failed signature. To fix the signature had to make a work around another problem with conflicting packages. Fixed that, but signature still invalid. To fix the signature, have to edit pacman.conf, but it appears I can't because I can't open any editor with root privilege. Mousepad gives an endless loop of error, KWrite says it doesn't exist. So I, as a total newbie, am a lot more confused.

Technically I can go online on Arch machine, but not much use of it because every page is a risk. I can download packages from pacman, but can't install them.

Even if this gets fixed, I'll get around to actually studying Arch Wiki in full detail to understand everything I'm doing. It's just that it's a large ground to cover so I'm dealing with issues as they come.

Last edited by ArchDoom (2015-12-02 02:12:14)

Offline

#12 2015-12-02 02:15:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Can't Access /etc/pacman.conf

Thank you, that helps.  Can you elaborate on how you reinstalled the firefox dependencies?  It sounds like you may have failed to do a full system upgrade (pacman -Syu) and instead you may have done a partial upgrade.  This is known to cause all sorts of headaches - especially if the system hadn't been used/updated in a while.

The GUI text editors - as noted above - should not be used with sudo, so it's not a surprise that they fail.  You *could* use gksu/kdesu, but if you intead to continue to use arch, you should learn your way around the cli more as some problems are easiest to fix and investigate from the cli, even if your daily usage is all GUI stuff.

So, to edit a file from the cli, there are many text editors you could use.  Vim and Emacs are probably the most popular - but I suspect neither of these would be your cup of tea - at least not yet, as they are very very different from gui text editors.  Nano on the other hand should work well.  So the following command should work, if not please report exactly what error it gives:

sudo nano /etc/pacman.conf

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#13 2015-12-02 02:24:14

ArchDoom
Member
Registered: 2015-12-01
Posts: 15

Re: Can't Access /etc/pacman.conf

Trilby wrote:

Thank you, that helps.  Can you elaborate on how you reinstalled the firefox dependencies?  It sounds like you may have failed to do a full system upgrade (pacman -Syu) and instead you may have done a partial upgrade.  This is known to cause all sorts of headaches - especially if the system hadn't been used/updated in a while.

The GUI text editors - as noted above - should not be used with sudo, so it's not a surprise that they fail.  You *could* use gksu/kdesu, but if you intead to continue to use arch, you should learn your way around the cli more as some problems are easiest to fix and investigate from the cli, even if your daily usage is all GUI stuff.

So, to edit a file from the cli, there are many text editors you could use.  Vim and Emacs are probably the most popular - but I suspect neither of these would be your cup of tea - at least not yet, as they are very very different from gui text editors.  Nano on the other hand should work well.  So the following command should work, if not please report exactly what error it gives:

sudo nano /etc/pacman.conf

To reinstall dependecies I did

pacman -Qi firefox

and whatever dependencies it listed, I reinstalled it with pacman -S.

I used nano while installing Arch, but now it just gives a missing library, which I can't install because of the signature thing. So it looks like I got myself in quite a predicament. I tried to do something in advanced start and I turned off the laptop while something was loading, and now it doesn't even boot because of the failed network manager-

Last edited by ArchDoom (2015-12-02 02:28:21)

Offline

#14 2015-12-02 02:33:29

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Can't Access /etc/pacman.conf

ArchDoom wrote:

I'm interested in Arch Linux, but this has to be the worst community I've ever seen. Sure you have all your documentations, but it's like you're all too proud to help out when someone shows lack of knowledge. I have to start somewhere.

This is an issue that comes up often and I think that I understand both sides of it. Yes, the community is here to be a source of help and yes, sometimes users are told to RTFM impolitely (and sometimes when a quick answer would have been much more helpful). The core of the issue is that there are two broad categories of users: the ones who genuinely want to learn and are willing to make an effort to do so, and the ones who just want the quick answers to get on with their business. Telling them apart is not always easy, and sometimes the latter mistake themselves for the former. The forum is only for the former.

Arch is nominally aimed at "competent Linux users". Users are expected to already know certain things about a GNU/Linux system such as basic system management, common system tools, etc. Editing text files as root is one of those skills. Despite the official target audience, the real target audience is anyone who is willing to make the effort to learn (see this thread, for example. As you can see, I was a complete Linux noob when I started, and still am in many cases).

I agree that sometimes we, the mods, reply with less than perfect diplomacy. We deal with a lot of people who don't want to make any effort and yet demand that others make an effort on their behalf and that annoyance spills over sometimes. We're only human and we try to keep it in check. I'm not talking about replies in this thread or any other posts in particular. When we come across someone asking (seemingly) very simple (and searchable) questions, they are likely to be lumped into the second, unwanted category. It's unfortunate, but quite often correct. Basically, when someone shows up at a new place where nobody knows them, it's up to that person to show that they are well-intentioned, especially when asking for others to spend time and effort on them.

I understand why some people feel that his community is elitist, but I honestly think that's mostly a misunderstanding.* If you have the time, read through my swimming analogy.

* Yes, there are some really annoying Arch fanboys around, but not that many visible here, and yes, occasionally some posts from regulars and even staff are condescending.


edit 1

ArchDoom wrote:

I used nano while installing Arch, but now it just gives a missing library, which I can't install because of the signature thing. So it looks like I got myself in quite a predicament. I tried to do something in advanced start and I turned off the laptop while something was loading, and now it doesn't even boot because of the failed network manager-

You could boot into the live CD and try to fix everything from there by mounting the currently installed system and re-installing the necessary packages. That may be a learning experience but given the time that's passed since you've used the system I recommend a fresh installation instead of trying to track down problems on an unfamiliar system.

Last edited by Xyne (2015-12-02 02:36:09)


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#15 2015-12-02 02:49:08

ArchDoom
Member
Registered: 2015-12-01
Posts: 15

Re: Can't Access /etc/pacman.conf

Xyne wrote:
ArchDoom wrote:

I'm interested in Arch Linux, but this has to be the worst community I've ever seen. Sure you have all your documentations, but it's like you're all too proud to help out when someone shows lack of knowledge. I have to start somewhere.

This is an issue that comes up often and I think that I understand both sides of it. Yes, the community is here to be a source of help and yes, sometimes users are told to RTFM impolitely (and sometimes when a quick answer would have been much more helpful). The core of the issue is that there are two broad categories of users: the ones who genuinely want to learn and are willing to make an effort to do so, and the ones who just want the quick answers to get on with their business. Telling them apart is not always easy, and sometimes the latter mistake themselves for the former. The forum is only for the former.

Arch is nominally aimed at "competent Linux users". Users are expected to already know certain things about a GNU/Linux system such as basic system management, common system tools, etc. Editing text files as root is one of those skills. Despite the official target audience, the real target audience is anyone who is willing to make the effort to learn (see this thread, for example. As you can see, I was a complete Linux noob when I started, and still am in many cases).

I agree that sometimes we, the mods, reply with less than perfect diplomacy. We deal with a lot of people who don't want to make any effort and yet demand that others make an effort on their behalf and that annoyance spills over sometimes. We're only human and we try to keep it in check. I'm not talking about replies in this thread or any other posts in particular. When we come across someone asking (seemingly) very simple (and searchable) questions, they are likely to be lumped into the second, unwanted category. It's unfortunate, but quite often correct. Basically, when someone shows up at a new place where nobody knows them, it's up to that person to show that they are well-intentioned, especially when asking for others to spend time and effort on them.

I understand why some people feel that his community is elitist, but I honestly think that's mostly a misunderstanding.* If you have the time, read through my swimming analogy.

* Yes, there are some really annoying Arch fanboys around, but not that many visible here, and yes, occasionally some posts from regulars and even staff are condescending.


edit 1

ArchDoom wrote:

I used nano while installing Arch, but now it just gives a missing library, which I can't install because of the signature thing. So it looks like I got myself in quite a predicament. I tried to do something in advanced start and I turned off the laptop while something was loading, and now it doesn't even boot because of the failed network manager-

You could boot into the live CD and try to fix everything from there by mounting the currently installed system and re-installing the necessary packages. That may be a learning experience but given the time that's passed since you've used the system I recommend a fresh installation instead of trying to track down problems on an unfamiliar system.


Thanks, you've reassured me that it's not as hostile here as I thought. I understand it's a problem if everyone just comes here looking for a quick, easy fix not bothering to do some research on their own.
I first used Ubuntu for some time but then I wanted to learn more about under the hood of the whole thing and heard of Arch and thought it's a perfect opportunity to learn Linux while building a stable OS. I figured the best way to learn is to start with the hard stuff, like it's better to learn to drive a difficult, older car than a brand new electronics guided one. Once you master the hard stuff, the easy stuff come as a reward. (Not that I'm comparing Arch to an old, obsolete car)
I'd focus on Arch on my main PC if it weren't for games I wouldn't be able to play on it, or at least not as well. While it's on an old laptop, it's a little pet project I go to every once in a while.

I'll read through the entire wiki and learn what and why I'm doing what I'm doing. You're right, I should just start over at this point.

Offline

#16 2015-12-02 03:05:21

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Can't Access /etc/pacman.conf

ArchDoom wrote:

Thanks, you've reassured me that it's not as hostile here as I thought. I understand it's a problem if everyone just comes here looking for a quick, easy fix not bothering to do some research on their own.
I first used Ubuntu for some time but then I wanted to learn more about under the hood of the whole thing and heard of Arch and thought it's a perfect opportunity to learn Linux while building a stable OS. I figured the best way to learn is to start with the hard stuff, like it's better to learn to drive a difficult, older car than a brand new electronics guided one. Once you master the hard stuff, the easy stuff come as a reward. (Not that I'm comparing Arch to an old, obsolete car)
I'd focus on Arch on my main PC if it weren't for games I wouldn't be able to play on it, or at least not as well. While it's on an old laptop, it's a little pet project I go to every once in a while.

I'll read through the entire wiki and learn what and why I'm doing what I'm doing. You're right, I should just start over at this point.

I'm likely biased but I think this is overall a great community (on the forum and mailing lists at least... no comment on IRC). As long as someone is willing to make a little effort first they tend to get on well here.

I would say it's closer to building your own car from parts vs buying something from a dealership. You decide what you want to include and how to put it together. You have to do the work to get it set up and configured as you like, but after that it's yours, with exactly what you wanted, no more, no less (well, sometimes you want a specific part but that part doesn't exist yet or doesn't fit for some reason, but usually someone else will make an alternative). If you want the latest electronics and whatever else in it, you can add it. It's obviously not for everyone and sometimes it's easier to get a stock car and rely on a mechanic, but if you like to tinker and you want control, it's a good choice.

As for your pet system, try to show it some love at regular intervals (e.g. system upgrades at least once a week). Sometimes there are major upgrades that require user intervention and the upgrade process can be difficult if you have to step through those on an outdated system. It will also keep you familiar with the basics.

For the re-install, start with the beginner's guide on the wiki.


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#17 2015-12-02 03:19:12

ArchDoom
Member
Registered: 2015-12-01
Posts: 15

Re: Can't Access /etc/pacman.conf

Xyne wrote:
ArchDoom wrote:

Thanks, you've reassured me that it's not as hostile here as I thought. I understand it's a problem if everyone just comes here looking for a quick, easy fix not bothering to do some research on their own.
I first used Ubuntu for some time but then I wanted to learn more about under the hood of the whole thing and heard of Arch and thought it's a perfect opportunity to learn Linux while building a stable OS. I figured the best way to learn is to start with the hard stuff, like it's better to learn to drive a difficult, older car than a brand new electronics guided one. Once you master the hard stuff, the easy stuff come as a reward. (Not that I'm comparing Arch to an old, obsolete car)
I'd focus on Arch on my main PC if it weren't for games I wouldn't be able to play on it, or at least not as well. While it's on an old laptop, it's a little pet project I go to every once in a while.

I'll read through the entire wiki and learn what and why I'm doing what I'm doing. You're right, I should just start over at this point.

I'm likely biased but I think this is overall a great community (on the forum and mailing lists at least... no comment on IRC). As long as someone is willing to make a little effort first they tend to get on well here.

I would say it's closer to building your own car from parts vs buying something from a dealership. You decide what you want to include and how to put it together. You have to do the work to get it set up and configured as you like, but after that it's yours, with exactly what you wanted, no more, no less (well, sometimes you want a specific part but that part doesn't exist yet or doesn't fit for some reason, but usually someone else will make an alternative). If you want the latest electronics and whatever else in it, you can add it. It's obviously not for everyone and sometimes it's easier to get a stock car and rely on a mechanic, but if you like to tinker and you want control, it's a good choice.

As for your pet system, try to show it some love at regular intervals (e.g. system upgrades at least once a week). Sometimes there are major upgrades that require user intervention and the upgrade process can be difficult if you have to step through those on an outdated system. It will also keep you familiar with the basics.

For the re-install, start with the beginner's guide on the wiki.


I was just going through the Beginner's guide. I'm already getting a better sense of the whole thing compare to how I installed it the last time - through guides on Youtube. Too bad it's 4 AM here now, but I will look into it more carefully when I get the chance. Thanks.

Offline

#18 2015-12-02 07:29:50

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Can't Access /etc/pacman.conf

ArchDoom wrote:

I was just going through the Beginner's guide. I'm already getting a better sense of the whole thing compare to how I installed it the last time - through guides on Youtube. Too bad it's 4 AM here now, but I will look into it more carefully when I get the chance. Thanks.

If you are re-installing Arch, it's better you ask the mods to close this thread. You can post new questions in separate threads, if and when they arise.

Last edited by x33a (2015-12-02 07:30:08)

Offline

#19 2015-12-02 10:38:40

ArchDoom
Member
Registered: 2015-12-01
Posts: 15

Re: Can't Access /etc/pacman.conf

x33a wrote:
ArchDoom wrote:

I was just going through the Beginner's guide. I'm already getting a better sense of the whole thing compare to how I installed it the last time - through guides on Youtube. Too bad it's 4 AM here now, but I will look into it more carefully when I get the chance. Thanks.

If you are re-installing Arch, it's better you ask the mods to close this thread. You can post new questions in separate threads, if and when they arise.

Mods, close this thread.

Offline

#20 2015-12-02 12:34:33

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Can't Access /etc/pacman.conf

Closing as requested.


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB