Pacman.conf problem [solved]

Hi im having a problem with yaourt, and packer and i cant also install any package form Aur for example:
packer -S opencascade
grep: /etc/pacman.conf: Permission denied
error: config file /etc/pacman.conf could not be read: Permission denied
error: config file /etc/pacman.conf could not be read: Permission denied
Aur Targets (1): opencascade
Proceed with installation? [Y/n] y
Dependencies for `opencascade' are not met, not building..
i have the same problem with yaourt
if i try to install from a tarball  for example i get this
makepkg -s
==> Making package: plank-bzr 820-1 (Fri Jun 7 13:06:26 ART 2013)
==> Checking runtime dependencies...
error: config file /etc/pacman.conf could not be read: Permission denied
==> ERROR: 'pacman' returned a fatal error (1):
[dam2@dam1d plank-bzr]$
i installed arch linux again yesterday and i copy the pacman.conf file that i have in my older arch linux to my new one
# /etc/pacman.conf
# See the pacman.conf(5) manpage for option and repository directives
# GENERAL OPTIONS
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
#VerbosePkgLists
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
#[testing]
#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist
[multilib]
Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
# /etc/pacman.conf
# See the pacman.conf(5) manpage for option and repository directives
# GENERAL OPTIONS
modedit: added code tags /Xyne
Last edited by adcdam (2013-06-07 19:28:32)

grep: /etc/pacman.conf: Permission denied
error: config file /etc/pacman.conf could not be read: Permission denied
error: config file /etc/pacman.conf could not be read: Permission denied
This tells you that you have incorrectly configured permissions when you copied the file. Fix that with
chmod 644 /etc/pacman.conf
Also note that I have added code tags ([code]) to your post. Please use them in the future when you post command output or file contents.

Similar Messages

  • Resolv.conf problems [SOLVED]

    hey all,
    i was playing around with  https://wiki.archlinux.org/index.php/Pdnsd  ,followed step by step the tutorial.
    the tutorial states;
    System setup
    Now it is time to point your system toward your brand-new DNS server.
    If you use DHCP to configure your network settings, you need to edit /etc/resolv.conf.head (otherwise, you should modify /etc/resolv.conf); add pdnsd before all of the other nameservers:
    # pdnsd cache @ localhost
    nameserver 127.0.0.1
    my resolv.conf
    # Generated by dhcpcd from eth0
    # /etc/resolv.conf.head can replace this line
    domain telenet.be
    nameserver 195.130.130.5
    nameserver 195.130.131.5
    # /etc/resolv.conf.tail can replace this line
    becomes
    # Generated by dhcpcd from eth0
    # /etc/resolv.conf.head can replace this line
    # pdnsd cache @ localhost
    nameserver 127.0.0.1
    domain telenet.be
    nameserver 195.130.130.5
    nameserver 195.130.131.5
    # /etc/resolv.conf.tail can replace this line
    am i right so far /? ,well when i do '/etc/rc.d/network restart'  my resolv.conf gets reset-ed to default....what am i doing wrong.
    Last edited by gregor (2012-01-30 19:03:53)

    yup so i did ,made a file  '/etc/resolv.conf.head' with
    # pdnsd cache @ localhost
    nameserver 127.0.0.1
    restarted my network '/etc/rc.d/network restart' and my resolv.conf got adjusted the right way
    # Generated by dhcpcd from eth0
    # pdnsd cache @ localhost
    nameserver 127.0.0.1
    domain telenet.be
    nameserver 195.130.131.133
    nameserver 195.130.130.5
    # /etc/resolv.conf.tail can replace this line
    the con-tense of the file  '/etc/resolv.conf.head' replaces literary !!!!!
    # /etc/resolv.conf.head can replace this line
    Last edited by gregor (2012-01-30 19:08:09)

  • Cannot enable wget in pacman.conf(solved)

    Pacman does not recognize wget in /etc/pacman.conf....
    [root@n6re ~]# pacman -Scc
    error: config file /etc/pacman.conf, line 19: directive 'xferCommand' noted.
    [root@n6re ~]#
    Attempting to eliminate pacman's filling of my /root partition during full system download I attempted to use wget to aid in downloading.  The result is noted above.
    My root partition is filled...used
    pacman -Scc
    once but the problem repeated.  Some users use wget to solve the problem so I tried that .
    Attempted to use:
    pacman -Q |less
    The same error concerning wget occured again and no display of installed packages ensued.
    So for the present cannot state which pacman version I have installed.
    Will restore /etc/pacman.conf to original condition and report further on this problem.
    Last edited by lilsirecho (2009-10-10 06:19:32)

    Thanks for the sharp eye.
    Reset my modem, re-installed pacman and corrected the pacman.conf entry for wget.
    All is well again....

  • [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)

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

  • [Solved]Add kernel26 to IgnorePkg in /etc/pacman.conf. Not ignored.

    Using kdemod4.3(32bit).  I re-installed kernel26-2.6.30.5-1-i686(earliest in pacman  pkg cache) and added kernel26 and kernel-headers to /etc/pacman.conf IgnorePkg but # "pacman -Syu" still asks to upgrade kernel to 2.30.6-1-i686. What do I add to that IgnorePkg to avoid kernel upgrade? Tried kernel, kernel26 and kernel26*. Adding nvidia,nvidia-utils and xorg-server to Ignorepkg give me that thee aren't upgraded(desirred result). Thanx.
    Last edited by lestoil (2009-10-08 18:08:14)

    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir     = /
    #DBPath      = /var/lib/pacman/
    #CacheDir    = /var/cache/pacman/pkg/
    #LogFile     = /var/log/pacman.log
    HoldPkg     = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst   = pacman
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #XferCommand = /usr/bin/curl %u > %o
    #CleanMethod = KeepInstalled
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    IgnorePkg   = nvidia nvidia-utils xorg-server 
    #IgnoreGroup =
    #NoUpgrade   =
    #NoExtract   =
    # Misc options (all disabled by default)
    #UseSyslog
    #ShowSize
    #UseDelta
    #TotalDownload
    # REPOSITORIES
    #   - can be defined here or included from another file
    #   - pacman will search repositories in the order defined here
    #   - local/custom mirrors can be added here or in separate files
    #   - repositories listed first will take precedence when packages
    #     have identical names, regardless of version number
    #   - URLs will have $repo replaced by the name of the current repo
    # Repository entries are of the format:
    #       [repo-name]
    #       Server = ServerName
    #       Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # Testing is disabled by default.  To enable, uncomment the following
    # two lines.  You can add preferred servers immediately after the header,
    # and they will be used before the default mirrors.
    #[testing]
    #Include = /etc/pacman.d/mirrorlist
    #KDEmod4
    [kdemod-core]
    Server = http://mirror.rit.edu/kdemod/core/i686
    #KDEmod4
    [kdemod-extragear]
    Server = http://mirror.rit.edu/kdemod/extragear/i686
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    #Yaourt
    [archlinuxfr]
    Server = http://repo.archlinux.fr/i686
    # An example of a custom package repository.  See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
      Here is complete /etc/pacman.conf. file without the "kernel" or "kernel26" entry which doesn't work.

  • Pacman.conf - No Repositories listed [SOLVED]

    My pacman.conf is showing no respositories.
    http://gmjones.org/tv/pacman.conf
    Where can I go to get a current list to insert into this file?
    Thanks.
    Last edited by chome4 (2012-01-16 15:10:09)

    [core]
    Include = /etc/pacman.d/mirrorlist
    Should be rather self explaining, it grabs the mirrors from /etc/pacman.d/mirrorlist.
    And for updating that list, there are two tools linked to on archlinux.org mainpage:
    http://www.archlinux.org/mirrors/status/
    http://www.archlinux.org/mirrorlist/

  • [solved] when to update pacman.conf

    I apologise in advance. I'm worried that I've either read the answer to this or asked the question before but, if so, I cannot for the life of me find it.
    What is the best way to check the progress on package signing? and, even, database signing? (I assume the latter is not yet implemented.)
    Currently, I'm using PackageRequired for multilib and core but not community or extra (and not for AUR).
    Is there a sticky, blog or wiki page I can monitor so that I know when to require signing for the remaining packages? And when signatures for the databases themselves are implemented?
    Or will this be announced via a pacman -Syu announcement?
    Last edited by cfr (2012-03-18 03:17:22)

    Thanks. I didn't know about expac... expac + grep "(null)" also works nicely though I admit awk is neater. (I just always find awk kind of alien and have never really got to grips with it.)
    I've updated pacman.conf to "PackageRequired" for extra. Just a few things in Community to go, I guess. I didn't realise the signing was this far along!

  • [Solved](Offline) install of packages, pacman.conf?

    Good morning (or what ever time of the day it is for you now )!
    I tried offline installation as this guide http://wiki.archlinux.org/index.php/Off … f_packages instructed plus configured pacman.conf to have Server = file:///var/lib/pacman/sync/approriate_dir lines. When trying pacman -Sp --noconfirm any_package I get ERROR: not found in sync db. Is there something I should know? Is my pacman.conf file made by an ass ?
    Last edited by aCyd (2008-03-24 11:53:22)

    I fixed it. This is how (maybe someone finds this useful):
    the pacman that came with the installation cd was apparently different version than the one used when writing the wiki. It wouldn't look for the core.db.tar.gz and the other files from the /var/lib/pacman/sync/core etc folders (perhaps it would have found them from the /var/lib/pacman/core etc folders there were already, who knows didn't try).
    I made a folder called /mnt/usb
    mkdir /mnt/usb
    mounted the usb stick (it showd as sdb1 for me)
    mount /dev/sdx /mnt/usb
    and added
    Server = file:///mnt/usb/Arch
    to my pacman.conf under [core], [extra] and [community] so pacman found them from my usb stick along with packages. I also made sure that the 'Include /path/to/mirrorlist' was commented. No tar command was needed.
    pacman -Sp --noconfim {package-name} > pkglist
    didn't work for me. I just got the last error line without any package names. Instead I used grep
    pacman -Syu --noconfirm | grep error > pkglist
    and upgraded the whole system.
    I modified the pkglist in emacs with replace-string to remove '' from disk : No such file or directory' after the package name and then again to replace 'error: failed retrieving file '' with the url of my selected mirror. (I know that could have been done more elegantly using sed or something or even a proper regexp in emacs if not with the command) After that I downloaded the packages as instructed, copied them to my usb and mounted it to my Arch system and ran again
    pacman -Syu

  • Deleting Pacman Database File [SOLVED]

    Hello,
    just a quick question. I tested the "testing" repos but now disabled it in pacman.conf. When I'm doing pacman -Syy oder pacman -Syu it updates
    the remaing databases ( core,extra,community ) and complains that it can't find a server for "testing" and "community-testing". It doesn't cause
    any problem but looks ugly. How can I get pacman to stop trying to update my disabled repos?
    Kind Regards,
    blackout23
    Last edited by blackout23 (2012-03-07 15:24:24)

    Post your pacman.conf, I can't reproduce your issue.
    In the future, please post the exact error message you're getting.
    Just a guess, it looks like you forgot to comment out the header:
    :: Synchronizing package databases...
    error: failed to update testing (no servers configured for repository)
    error: failed to update community-testing (no servers configured for repository)
    core is up to date
    [testing]
    should now be
    #[testing]
    Last edited by karol (2012-03-07 15:05:14)

  • Linux 3.1.9 and HDA ATI SB problem [SOLVED]

    I`ve just updated kernel from 3.1.8 to 3.1.9 and now my HDA ATI SB (ALC889 Analog) audio card is now unavailable for system. Any suggestions?
    I have KDE, and phonon-gstreamer.
    Last edited by RealGecko (2012-01-14 11:38:02)

    Well problem solved. Of course it is strange, but.. Before update I installed fluidsynth and enabled to run it as daemon through rc.conf. Then was update and restart after that I had message that my sound card doesn`t work. I was thinking and decided to remove fluidsynth from daemons array. After restart everything works again. The strangest thing is that if I start fluidsynth daemon during system run(/etc/rc.d/fluidsynth start) everything works fine.

  • Pacman/Pacman.conf Scripts

    I've been working on these two pieces for a while. For the most part, they're complete to my standards, but obviously they can always looked to be improved upon. I use the first one daily with no real problems (though I could add a little more error handling) and the other one does work for me though I don't need to call upon it too much.
    My goal was really to provide an interface for pacman which was fast but still easy to use. I also realized that I can't write any GUI code, nor do I feel like it's nessisary to make something simple. It really only requires bash, a few coreutils, and pacman to be used, so if you're on a lower-end system and don't want to call upon a large GUI front end, this may be something good for you to try out.
    Any feedback is appreciated too
    Pacman Manager Script
    #!/bin/bash
    #Pacman Manager
    #Author: Doug Swain ([email protected])
    ###Defining Operations###
    function install {
    echo "Installing package now"
    echo
    sudo pacman -S $PACKAGE
    echo
    echo "The package ($PACKAGE) is now installed"
    echo "Press enter to contiue"
    read
    function uninstall {
    echo "Uninstalling package now"
    echo
    sudo pacman -R $PACKAGE
    echo
    echo "The package ($PACKAGE) has been removed."
    echo "Press enter to contiue"
    read
    function sync {
    echo "Syncing with servers"
    echo
    sudo pacman -Sy
    echo
    echo "Sync complete. Press enter to continue"
    read
    function update {
    echo " Updating your system now"
    echo
    sudo pacman -Syu --noconfirm
    sudo pacman -Scc
    echo
    echo "Your system has been updated"
    echo "Press enter to contiue"
    read
    function search {
    clear
    echo "What package would you like to search?"
    read PACKAGE
    sudo pacman -Ss $PACKAGE
    echo "Would you like to search again?"
    echo "[Y]es"
    echo "[N]o"
    read CHOICE
    if [[ "$CHOICE" = [Yy] ]]; then
    search
    elif [[ "$CHOICE" = [Nn] ]]; then
    echo "Search Finished. Press Enter to Continue"
    read
    fi
    function manage {
    clear
    if [ "$UID" != 0 ]; then
    echo "Error! Not running as the root user right now. Become a super user and try again"
    exit 1
    fi
    clear
    echo " Welcome to the Pacman Manager"
    echo
    echo " What would you like to do?"
    echo
    ###ENDDEFINE###
    ###MANAGER###
    manage
    OPTIONS="Install Uninstall Sync Update Search Exit"
    select opt in $OPTIONS; do
    if [ "$opt" = "Install" ]; then
    clear
    echo "What package would you like to install?"
    read PACKAGE
    install
    manage
    elif [ "$opt" = "Uninstall" ]; then
    clear
    echo "What package would you like to uninstall?"
    read PACKAGE
    uninstall
    manage
    elif [ "$opt" = "Sync" ]; then
    clear
    sync
    manage
    elif [ "$opt" = "Update" ]; then
    clear
    update
    manage
    elif [ "$opt" = "Search" ]; then
    clear
    search
    manage
    elif [ "$opt" = "Exit" ]; then
    clear
    exit
    fi
    done
    ###ENDMANAGER###
    pacman.conf Script
    #!/bin/bash
    #Pacman Configurator
    #Tool to configure and modify pacman and /etc/pacman.conf
    #Pretty Stable from my tests, but use with caution
    #Backup your /etc/pacman.conf file just in case.
    #Author: Doug Swain ([email protected])
    ###DEFINE FUNCTIONS####
    function srv_ctl {
    clear
    echo "Server Control"
    echo "Selections:"
    echo "[A]dd URL"
    echo "[R]emove URL"
    echo "[E]nable Resporitories"
    echo "[D]isable Resporitories"
    echo "[b]ack"
    read CHOICE
    if [ "$CHOICE" = "A" ]; then
    cat /etc/pacman.conf | grep "srv_ctl"
    if [ "$?" != "0" ]; then
    echo "[srv_ctl]" >> /etc/pacman.conf
    echo "Include = /etc/pacman.d/custom" >> /etc/pacman.conf
    fi
    clear
    echo "Enter URL"
    read URL
    echo "Adding"
    echo $URL >> /etc/pacman.d/custom
    cat /etc/pacman.d/custom | grep $URL
    echo "The server above has been added."
    elif [ "$CHOICE" = "R" ]; then
    clear
    echo "Current Custom Server List:"
    cat /etc/pacman.d/custom
    echo "Enter URL"
    read URL
    echo "Removing"
    URLTEST=$(cat /etc/pacman.d/custom | grep $URL)
    if [ "$URL" = "$URLTEST" ]; then
    cat /etc/pacman.d/custom | grep -v $URL >> /etc/pacman.d/custom1
    mv /etc/pacman.d/custom1 /etc/pacman.d/custom
    echo "Address removed. Press enter to continue."
    read
    srv_ctl
    elif [ "$URL" != "$URLTEST" ]; then
    echo "Error! Address not found. Press Enter to continue"
    read
    srv_ctl
    fi
    elif [ "$CHOICE" = "E" ]; then
    clear
    echo "Current Resporitiories available"
    ls /etc/pacman.d/
    echo "Enter Resporitory (example: current/custom/extra)"
    read RES
    echo "[$RES]" >> /etc/pacman.conf
    echo "Include = /etc/pacman.d/$RES" >> /etc/pacman.conf
    echo "Enabled. Press Enter to contiue"
    read
    srv_ctl
    elif [ "$CHOICE" = "D" ]; then
    clear
    echo "Current Resporitiories available"
    ls /etc/pacman.d/
    echo "Enter Resporitory (example: current/custom/extra)"
    read RES
    cat /etc/pacman.conf | grep -v "$RES" >> /etc/pacman1.conf
    mv /etc/pacman1.conf /etc/pacman.conf
    echo "Disabled. Press Enter to continue."
    read
    srv_ctl
    elif [ "$CHOICE" = "B" ]; then
    echo "Press enter to continue"
    read
    manage
    fi
    function pkg_ctl {
    clear
    echo "What would you like to do?"
    echo "[A]dd Package to Ignore List"
    echo "[R]emove Package from Ignore List"
    echo "[b]ack"
    read CHOICE
    if [ "$CHOICE" = "A" ]; then
    clear
    echo "Enter package name"
    read PKG
    echo "Adding"
    echo "IgnorePkg = $PKG" >> /etc/pacman.conf
    echo "HoldPkg = $PKG" >> /etc/pacman.conf
    echo "Package added. Press Enter to Continue"
    read
    pkg_ctl
    elif [ "$CHOICE" = "R" ]; then
    clear
    echo "Enter package name"
    read PKG
    echo "Removing"
    cat /etc/pacman.conf | grep -v "$PKG" >> /etc/pacman1.conf
    mv /etc/pacman1.conf /etc/pacman.conf
    echo "Package removed. Press Enter to Continue"
    read
    pkg_ctl
    elif [ "$CHOICE" = "B" ]; then
    echo "Press enter to continue"
    read
    manage
    fi
    function manage {
    clear
    if [ "$UID" != 0 ]; then
    echo "Error! Not running as the root user right now. Become a super user and try again"
    exit 1
    fi
    clear
    echo " Pacman Configuration"
    echo " What would you like to do?"
    ###END DEFINE####
    ###MANAGER####
    manage
    OPTIONS="Server_Control Package_Control Exit"
    select opt in $OPTIONS; do
    if [ "$opt" = "Server_Control" ]; then
    srv_ctl
    elif [ "$opt" = "Package_Control" ]; then
    pkg_ctl
    elif [ "$opt" = "Exit" ]; then
    clear
    exit 0
    fi
    done
    ###ENDMANAGER###
    Sadly my webserver is down as of now, so I can't post these scripts directly from my site, but this should work fine anyway. Enjoy!

    Oh no I understand. Hah I figured that'd be the case that somebody created something like this.
    Well my main point with these scripts was really just for self-teaching and such. Essentially though, my idea was to make a script which can help somebody who is newer and doesn't quite know all the helpful syntax of pacman or somebody who just doesn't want to be bothered with it have a quick and easy way to do it. Since there are already GUI front ends to do something like this, I figured a scripted version would be nicer for somebody who may need something less resource intense. That's the first script
    The second script was just to make it a little less painful to navigate the pacman.conf file without having to go through it and figure out the syntax for everything (if you don't already know it) because I figured it was easier to find just a URL than to know all the syntax of the config file, and this just fills in the voids for you.
    I use it for myself daily and it does make it a bit easier when you just want to install a package or update real quickly. Like I said though, I'm not surprised that there's something better implimented already. I figured I'd just toss it out there to see who could enjoy it. I appreciate the questioning though as you're right; I didn't make myself very clear-cut. At any rate, useful or not for people, they're here haha. Like I also said, I wrote these just as a learning experience for coding and other things. So, if somebody can find a use for them, all the better. If not, um, sorry to waste thread space haha.

  • Pacman.conf for a server

    I'm curious how others are configuring pacman for a server system.  I've read in multiple places the normal thing to do is have an "IgnorePkg = kernel26" line in pacman.conf.  But is this really enough?  What about the packages that depend on kernel26?  Isn't it possible for kernel-headers and glibc (etc) to easily become out of date causing user land apps to fail since newer entry points might/would be missing in the older kernel?
    Thanks.

    insanum wrote:What about the packages that depend on kernel26?
    Not a problem, they are still upgraded by the usual:  pacman -Syu
    To detect out-of-sync library soname versions (which will probably be your next question), use findbrokenpkgs.

  • Pacman repository problems

    So I noticed that pacman 2.6.1 allows for HTTP servers.
    This is great, as I wanted to run my own repository (for personal packages).
    Well I stuck the address in the pacman.conf as: Server = http://www.freewebs.com/frink36
    and it says it fails to download the appropriate db.tar.gz file. I know its there, as I can download it from other places.
    Is there something special I have to do? Ive tried removing the "www.".
    Also, I dont have any of the actual packages uploaded (I wanted to test first), do I have to have all the packages uploaded for it to work?

    nevermind, It was a problem w/ freewebs.com
    Anyone have a good free place to host that has lots of space and no file upload limit?

  • Pacman: a country request in pacman.conf

    Dear all,
    first, excuse me for my bad english.
    Setting the nearest mirror in all /etc/pacman.d files should be tedious especially if I am a men that go around the world (this is not my case).
    Is it possible to add a new feature in pacman.conf to enable the user to set the mirror country without touch the
    /etc/pacman.d files?
    Something like COUNTRY=IT or MIRROR_COUNTRY=IT
    So, if I'll go in another country or only to test other mirrors, I have only to change a variable.
    Thanks for the attention
    morellik

    I think the main problem is that there are several mirror lists to edit, while one is enough.
    There is a way in pacman 3.1 to have just one list, so it'll be much easier to edit it manually.
    Just move the mirrors from your country at the top in one file, and you're done.

  • Edit pacman.conf without editor

    Hi folks,
    I have got a BIG problem. That is what I did:
    I installed a new /etc/pacman.d/mirrorlist
    after that I got an error in pacman, which said that the architecture is unknown or sth
    so I inserted "Architecture = x86_64" into pacman.conf and did some updates
    after a restart some time later xinit failed to initialize "x" ... probably because my window manager can not load (see following text)
    well, now I am left without X and when I try to start vim it says sth like: "error while loading shared libraries gtk-x11-...sth... wrong ELF class ELFCLASS64"
    now I tried to install nano via pacman which was successful, but as soon as I try to start nano it says "/usr/bin/nano file or directory not found" (I also tried to install vi with the same result)
    Now I am really lost since I can not edit any files, especially pacman.conf to change the architecture, since I guess the origin of my problem is that I did not have a x64 system in first place!? Even though I am sure I have ...
    Do you have any idea how to fix my system? I can still use pacman and mount a usb device, if that helps?
    Best,
    Tobias

    Please try to give us some more information:
    Do
    ls -l /usr/bin | grep nano
    and see if nano is actually present. Also check if "/usr" is mounted
    mount
    . If you are unsure, post the output.
    Also please provide your pacman.conf so we can see if there's anything wrong there. To get it do
    cat /etc/pacman.conf
    . Then place it in the file as noted below.
    Note: to provide the output do the following:
    COMMAND > ~/command_output.txt
    . Then you can copy those files to a usb drive via
    cp ~/command_output.txt /path/to/usb
    This could help us figure out the problem.
    You could also look into tools for "editing" a file in the command line. Maybe 'sed' can help there, not so sure myself. Perhaps you can do some kind of
    cat /etc/pacman.conf | *command to replace/remove the Architecture line* > /etc/pacman.conf
    Watch out though, ALWAYS make backups, you don't want to screw things up even more.
    Hope this helps.
    By the way: You change doesn't look so wrong if I am not mistaken. I wonder how this could screw things up this way?
    Oh by the way: If all else fails, boot a live cd, mount your system and edit the files via live cd tools. If you then want to test things you can chroot into your mounted system.

Maybe you are looking for

  • Ipod "cannot read or write to___'s Ipod"

    Hey, I'm getting a very frustrating error... and was wondering what on earth it means... and why I can't use any more than 2.89 Gigs of my 60 gig ipod... after trying to place more on it... pretty much of anything... it says that it can't read or wri

  • Installing 11gr2 release 11.2.0.2 database in Windows 7 32 bit

    Hi everyone, I want to Install 11gr2 release 11.2.0.2 database in Windows 7 32 bit. I have searched on download.oracle.com but i was not able to findout proper database compatible with windows 7. They had 11gEX db but i want to install simple 11gr2.

  • HELP, date class and parsing input

    I have reviewed many posts in these forums and have found that detail gets the best results so I apologize in advance if this is detailed. I am taking a Java class and am not doing so hot. The last time I programmed was in 1998 and that was Ada, I ve

  • " software for this i phone is not installed correctly. reinstall iTunes"

    Hi guys I managed to get iTunes to open but now I receive a warning message "software for this i phone is not installed correctly. reinstall iTunes", when connecting my iphone and ipad as well... reinstalling itunes does not solve the problem. I trie

  • A little change is required in the script, please help.

    I am using a script named as <Zoom to Width> that I found on web. This script does two jobs (1) zoom to a specific percentage (2) and center the page horizontally as well vertically at that zoom level. I have changed the zoom value to 170% in it. Now