[SOLVED] Pacman and yaourt not working when run with "sudo"

Hi,
I am an Arch newbie, just installed Arch 3.10 on my machine. I access internet through a proxy server and I'm facing this strange problem -
Pacman is unable to fetch packages when I run it through sudo - "sudo pacman -S smplayer" (It gives network unreachable error).
However when I run it through root, it retrieves those same packages successfully.
yaourt also faces a similar kind of problem -
When I run it through sudo or as root, it is unable to retrieve packages which can be downloaded by pacman. But, when I run pacman to download those same packages, it is able to do so.
I am using gnome 3.8, and use radiotray ( It's for listening online radios ). When I run it via 'Alt-F2' or as a startup application, it's not able to connect to any radio station ( which means it's not connecting to the internet ). However, on running it via terminal, it connects to the internet successfully. Are these 2 problems related ? I'm facing the first one even without loading gnome, so it's not gnome's problem, i guess.
I can ping successfully through my administrator as well as root account, connect to the internet via browser, and ssh, git, bzr are also working fine.
What can I do to resolve this ?
Thanks
Last edited by parinporecha (2013-09-12 06:01:06)

parinporecha wrote:
To configure proxy, I added the line "export http_proxy=PROXY_LINK" to the bashrc files of user and root.
Regarding Arch 3.10, yes i meant the installation media from 2013.09.01 ( kernel 3.10 )
That's why root works, but not sudo. Sudo clears the environment. See man sudo and man sudoers.

Similar Messages

  • [Solved]Not able to use wget and hence pacman and yaourt not working.

    Like this
    I get following message when i try to update Arch linux Box.
    $ yaourt -Syu --aur
    :: Synchronizing package databases...
    error: failed retrieving file 'core.db' from archlinux.limun.org : No address record
    error: failed retrieving file 'core.db' from [url=ftp://ftp.heanet.ie]ftp.heanet.ie[/url] : No address record
    error: failed retrieving file 'core.db' from mirrors4.kernel.org : No address record
    error: failed retrieving file 'core.db' from mirror.yandex.ru : No address record
    error: failed retrieving file 'core.db' from mirror.mocker.org : No address record
    error: failed retrieving file 'core.db' from archlinux.nautile.nc : No address record
    $ sudo pacman -Syu
    :: Synchronizing package databases...
    error: failed retrieving file 'core.db' from archlinux.limun.org : No address record
    error: failed retrieving file 'core.db' from [url=ftp://ftp.heanet.ie]ftp.heanet.ie[/url] : No address record
    error: failed retrieving file 'core.db' from mirrors4.kernel.org : No address record
    error: failed to update core (No address record)
    error: failed retrieving file 'extra.db' from archlinux.limun.org : No address record
    error: failed retrieving file 'extra.db' from [url=ftp://ftp.heanet.ie]ftp.heanet.ie[/url] : No address record
    error: failed retrieving file 'extra.db' from mirrors4.kernel.org : No address record
    error: failed to update extra (No address record)
    error: failed retrieving file 'community.db' from archlinux.limun.org : No address record
    error: failed retrieving file 'community.db' from [url=ftp://ftp.heanet.ie]ftp.heanet.ie[/url] : No address record
    error: failed retrieving file 'community.db' from mirrors4.kernel.org : No address record
    error: failed to update community (No address record)
    error: failed retrieving file 'multilib.db' from archlinux.limun.org : No address record
    error: failed retrieving file 'multilib.db' from [url=ftp://ftp.heanet.ie]ftp.heanet.ie[/url] : No address record
    error: failed retrieving file 'multilib.db' from mirrors4.kernel.org : No address record
    error: failed to update multilib (No address record)
    error: failed to synchronize any databases
    When i try wget www.google.com
    $wget [url=http://www.google.com]www.google.com[/url]
    --2011-08-11 00:20:03-- [url]http://www.google.com[/url]/
    Resolving [url=http://www.google.com]www.google.com[/url]... failed: Name or service not known.
    wget: unable to resolve host address “www.google.com”
    But wget -4 works
    $ wget -4 [url=http://www.google.com]www.google.com[/url]
    --2011-08-11 00:20:27-- [url]http://www.google.com[/url]/
    Resolving [url=http://www.google.com]www.google.com[/url]... 74.125.93.105, 74.125.93.106, 74.125.93.147, ...
    Connecting to [url=http://www.google.com]www.google.com[/url]|74.125.93.105|:80... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: [url]http://www.google.co.in[/url]/ [following]
    --2011-08-11 00:20:29-- [url]http://www.google.co.in[/url]/
    Resolving [url=http://www.google.co.in]www.google.co.in[/url]... 74.125.93.103, 74.125.93.104, 74.125.93.105, ...
    Reusing existing connection to [url=http://www.google.com:80]www.google.com:80[/url].
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: “index.html.5”
    [ <=> ] 10,735 --.-K/s in 0.03s
    2011-08-11 00:20:30 (359 KB/s) - “index.html.5” saved [10735]
    It seems that it is some ipv6 vs ipv4 problem.
    I have put alias net-pf-10 off in my modprobe.conf also to disable ipv6.But issue is still there.
    $ cat /etc/modprobe.d/modprobe.conf
    # /etc/modprobe.d/modprobe.conf (for v2.6 kernels)
    # disable autoload of ipv6
    alias net-pf-10 off
    I use wdial to login to internet using a wireless USB connection.
    Can someone help me to resolve this issue?
    Last edited by piyushbhatt (2011-08-19 19:10:22)

    I used
    XferCommand = /usr/bin/wget -4 -c %o %u
    in pacman.conf .
    Now i get a different error message "scheme missing".I think now it is able to download core.db file but have some issue still accepting it.
    sudo pacman -Syu
    :: Synchronizing package databases...
    /var/lib/pacman/sync/core.db.part: Scheme missing.
    --2011-08-11 18:56:48-- http://archlinux.limun.org/core/os/x86_64/core.db
    Resolving archlinux.limun.org... 85.31.186.195
    Connecting to archlinux.limun.org|85.31.186.195|:80... connected.
    HTTP request sent, awaiting response... 206 Partial Content
    Length: 36638 (36K), 51 remaining [text/plain]
    Saving to: “core.db”
    100%[++++++++++++++++++++++++++++++++++++++>] 36,638 --.-K/s in 0s
    2011-08-11 18:56:48 (5.40 MB/s) - “core.db” saved [36638/36638]
    FINISHED --2011-08-11 18:56:48--
    Downloaded: 1 files, 36K in 0s (3.79 GB/s)
    /var/lib/pacman/sync/extra.db.part: Scheme missing.
    --2011-08-11 18:56:48-- http://archlinux.limun.org/extra/os/x86_64/extra.db
    Resolving archlinux.limun.org... 85.31.186.195
    Connecting to archlinux.limun.org|85.31.186.195|:80... connected.
    HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
    The file is already fully retrieved; nothing to do.
    /var/lib/pacman/sync/community.db.part: Scheme missing.
    --2011-08-11 18:56:49-- http://archlinux.limun.org/community/os/x86_64/community.db
    Resolving archlinux.limun.org... 85.31.186.195
    Connecting to archlinux.limun.org|85.31.186.195|:80... connected.
    HTTP request sent, awaiting response... 206 Partial Content
    Length: 458982 (448K), 367 remaining [text/plain]
    Saving to: “community.db”
    100%[++++++++++++++++++++++++++++++++++++++>] 458,982 --.-K/s in 0s
    2011-08-11 18:56:50 (41.8 MB/s) - “community.db” saved [458982/458982]
    FINISHED --2011-08-11 18:56:50--
    Downloaded: 1 files, 448K in 0s (51.0 GB/s)
    /var/lib/pacman/sync/multilib.db.part: Scheme missing.
    --2011-08-11 18:56:50-- http://archlinux.limun.org/multilib/os/x86_64/multilib.db
    Resolving archlinux.limun.org... 85.31.186.195
    Connecting to archlinux.limun.org|85.31.186.195|:80... connected.
    HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
    The file is already fully retrieved; nothing to do.
    :: Starting full system upgrade...
    warning: hddtemp: local (0.3.beta15.46-2) is newer than extra (0.3.beta15.46-1)
    warning: mplayer-vaapi: ignoring package upgrade (33161-3 => 33161-4)
    there is nothing to do

  • Why does this script not work when run with osascript cli?

    I wrote the following to interface with geektool to display a list of todo's on my desktop (i'm sure it's been done elsewhere, but I wanted to try it myself). I had it working fine until I tried ordering the output to place the highest priority items at the top of the list. The following code works properly during development in Script Editor, but when geektool launches the command using osascript ~/Library/Scripts/todos.scpt it only displays the initial "TODOS:" without displaying the rest of the info. Searching the Applescript Release notes, I found that some versions of Applescript 1.8 had issues with null characters when using the osascript cli, however, I'm running 1.10.7 so it shouldn't be an issue (and I'm not sure how to check for null characters in Applescript even if it were). Anybody have any ideas on what's going on here?
    set output to {"TODOS:
    set highpri to {}
    set medium to {}
    set low to {}
    set nada to {}
    tell application "iCal"
    repeat with i in calendars
    repeat with j in todos of i
    if (completion date of j as string) is equal to "" then
    if priority of j as string is equal to "high priority" then
    copy summary of j & "
    " to end of highpri
    end if
    if priority of j as string is equal to "medium priority" then
    copy summary of j & "
    " to end of medium
    end if
    if priority of j as string is equal to "low priority" then
    copy summary of j & "
    " to end of low
    end if
    if priority of j as string is equal to "no priority" then
    copy summary of j & "
    " to end of nada
    end if
    end if
    end repeat
    end repeat
    end tell
    return (output & highpri & medium & low & nada) as string

    well, i'd been pulling my hair out for quite a while with this and decided it was time to ask for help, but I thought I'd give it one last shot and found a resolution almost immediately. I figured that problem had to be caused by the way applescript was concatenating the lists, so I got rid of the lists completely and it still wouldn't work. This convinced me that it must be newline related since that was the only special character left in the string. I opened up the script in vi, but the default compiled script format is not human readable. The osascript man page indicated that it would accept both compiled and text scripts, so I gave it a try, and osascript handled the raw text file wonderfully.

  • I have purchased new iphone 3gs, its usb cable and charger not working.When I plugged in usb cable to my laptop it says"usb power hub exceeded". When I use another cable I have, it works fine.But the original one not working.Any help?

    I have purchased new iphone 3gs, its usb cable and charger not working.When I plugged in usb cable to my laptop it says"usb power hub exceeded". When I use another cable I have, it works fine.But the original one not working.Any help?

    Are you connecting your iPhone directly to your PC or to a USB hub?

  • Hi guys i have an macbook 13 late 2007 and does not work when i start it up all u can see is blank white screen and after that its keep bepping high peech tone 3 times i was thinking the hard drive but im not too sure please guys help.

    Hi guys i have an macbook 13 late 2007 and does not work when i start it up all u can see is blank white screen and after that its keep bepping high peech tone 3 times i was thinking the hard drive but im not too sure please guys help.

    Try to reset the PRAM first then go from there.
    http://support.apple.com/kb/HT1379

  • Multitouch on track pad not working when running Windows 8 in boot camp

    Does anyone know a work around on how to resolve the issue of more than one fingers on the trackpad? For example, I use one finger to click a window then another finger to slide/move the window to a different location on the screen. This does not work when running Windows 8 in Boot Camp latest version. Any suggestion is much appreciated.

    very very few gestures are supported in windows
    https://discussions.apple.com/message/24548533#24548533
    if it's a limitation from ms you need to contact them
    if it's a limitation from apples drivers you can use feedback channel
    http://www.apple.com/feedback/

  • [SOLVED] Xorg and keyboard not working after upgrade.

    Hi guys,
    after a `# pacman -Syyu` I got Xorg not starting and keyboard not working: I am unable to do anything.
    I'm posting here pacman's log that I got by booting an Ubuntu Live CD: https://gist.github.com/anonymous/7517806
    Any hint?
    How do you recover a system once it's gone like this? Many thanks in advance.
    J
    Last edited by ifsixwasnine (2013-12-23 13:58:16)

    WonderWoofy wrote:
    I wouldn't necessarily call this [SOLVED].  At best I would probably mention that you found a workaround.  The addition of '(downgrade)' likely makes it fine, but just FYI for future threads.  There are two reasons for this.  One, others who find this thread are likely to dig into it thinking there is a real solution, and two, if you mark it as [Solved] it might generate less attention, lessening the chances of you actually being helped to a real solution.
    Just my 1.46¢
    You're right, problem wasn't actually solved. In fact, yesterday I upgraded the whole system again and the same problem showed up, but I got it fixed.
    Same scenario: after a boot (shorter than usual), what I had was a tty, but I noticed something that I hadn't noticed the last time: the prompt said "Arch Linux 3.11.[?]".
    The kernel version was supposed to be 3.12.[?] so I started investigating and after several attempts, this is how I got the system working again:
    1. Chrooted into the system
    2. Wiped /boot
    3. Re-installed grub
    4. Re-installed linux kernel
    5. Re-created grub.cfg
    6. ???
    7. Profit
    I'm pretty sure that what originated the problem wasn't a "kernel issue" as I pointed out in my previous post, but it was an incorrect installation of grub: in fact, the grub prompt never showed up before yesterday, the system used to boot straight, ignoring the 5 seconds timeout.

  • Hyperlink is not working when running on sun solaris OS

    Hi,
    I have Created PDF file using oracle reports 2.5 version and included hyperlinks in reports which will open files located on our intranet server(http://cup2.ngc.co.uk). Hyperlinks are working properly when I generated report on window xp machine but not working when I compiled and executed report on solaris unix server(reports 6i).
    please let me know why hyperlinks is not working when executed on solaris((5.8). do we need any setup to work hyperlinks on unix server.
    Thanks in advance,

    Ok, there are 2 docs i've tried.
    A = Doc created originally from MPB Pages with hyperlink
    B = Doc created from iPad Pages with hyperlink
    A was transfered to iPad Pages using iTune. I emailed A as pdf from iPad to gmail and reopen the file on iPad using Quickoffice / PDF Reader Lite, the link is NOT active, not working. BUT, when i read A using MBP gmail, the link is ACTIVE, i click on the link and it brings me to the correct webpage.
    As for B, after the page was created with links on iPad, i emailed B as pdf from iPad to gmail, reopen the file on iPad using Quickoffice / PDF Reader Lite, the link is NOT active, and this time, when i read B using MBP gmail, the link is NOT active as well.
    Weird huh? I'm starting to sense that is the problem with iPad Pages. What say you?

  • Powershell Script Send-zip not working when running in cmd

    I found there is powershell send-zip script available in technet.  I tested it and found that it works when the script is running under powershell env, but when it is calling in cmd env, I can see the zip file, but there is nothing in it.  If
    I add the "-noexit" switch it runs normally.  Anyone have ideas what might be happening?
    The orig codes is as following:
    function global:SEND-ZIP ($zipfilename, $filename) { 
    # The $zipHeader variable contains all the data that needs to sit on the top of the 
    # Binary file for a standard .ZIP file
    $zipHeader=[char]80 + [char]75 + [char]5 + [char]6 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0 + [char]0
    # Check to see if the Zip file exists, if not create a blank one
    If ( (TEST-PATH $zipfilename) -eq $FALSE ) { Add-Content $zipfilename -value $zipHeader }
    # Create an instance to Windows Explorer's Shell comObject
    $ExplorerShell=NEW-OBJECT -comobject 'Shell.Application'
    # Send whatever file / Folder is specified in $filename to the Zipped folder $zipfilename
    $SendToZip=$ExplorerShell.Namespace($zipfilename.tostring()).CopyHere($filename.ToString())
    SEND-ZIP C:\abc\a.ZIP C:\a\a.bak

    I've had the same problem with similar code found on another web site.
    The reason the zip file ends up being empty is that the temporary $ExplorerShell object you created is deleted when the send-zip function returns,
    and any incomplete copy operation that may still be ongoing at that time is aborted. (The copy operation is asynchronous, and continues after the CopyHere() function returns.)
    To work around this, you need to add a delay loop before you return, waiting for the copied object to appear in the zip.
    (Note that adding a fixed delay, like I've seen on other web sites, does not work: Small files appear almost immediately, whereas large file or worse still large subdirectory trees can take a long time to appear.)
    Try changing the end of your routine to something like...
    # Create an instance to Windows Explorer's Shell comObject 
    $ExplorerShell=NEW-OBJECT -comobject 'Shell.Application' 
    # Open the zip file object
    $zipFile = $ExplorerShell.Namespace($zipfilename.tostring())
    # Count how many objects were in the zip file initially
    $count = $zipFile.Items().Count
    # Send whatever file / Folder is specified in $filename to the Zipped folder $zipfilename 
    $SendToZip=$zipFile.CopyHere($filename.ToString())
    # Wait until the file / folder appears in the zip file
    $count += 1 # We expect one more object to be there eventually
    while ($zipFile.Items().Count -lt $count) {
        Write-Debug "$filename not in the zip file yet. Sleeping 100ms"
        Start-Sleep -milliseconds 100
    # Return deletes the $zipFile object, and aborts incomplete copy operations.

  • Sorting array not working when run as a job

    I have a Powershell script that reads data from a log file, extracts a username and adds it to an array. I then sort the array to remove duplicates and export the data to a CSV file. The script works fine when run locally on the server but I need to call
    the script remotely for a number of servers and when I do this it does not output anything to the CSV. The script is run as a job.
    $ArrList = [System.Collections.ArrayList]@()
    # open file and read data
    $arrlist.Add("$final")
    $arrlist | sort -unique | out-file c:\scripts\iis_users.csv
    If I change the script to use add-content it can add entries to the same CSV file. But ideally I need to sort the output as there are many duplicates.

    Not sure why but that would only export the last user. I didn't have time to investigate so instead I decided to only add users to the array after first checking they didn't exist already:
    if ($arrlist -notcontains $final)
    $arrlist.Add("$final")
    add-content c:\scripts\iis_users.csv "$final"
    I thought this would create a performance hit but it seems almost as fast.

  • [solved] mouse and keyboard not working (and previous fix wont work)

    i made a clean default setup with
    arch
    latest kernel - 2.6.29 i think
    xorg 1.6.1
    video-intel-legacy
    on a 865G intel box + tried usb and ps2 keyboards + usb mouse
    when i start X the mouse and keyboard dont work (and i have to hard reset the box) in all of the setups i tried. the AutoAddDevices fix suggested before does not work this time
    - without xorg.conf
    - with auto-generated xorg.conf (X -confogure)
    - with the automatic conf +
    Section "ServerFlags"
    Option "AutoAddDevices" "False"
    EndSection
    - with tiny xorg.conf containing only
    Section "ServerFlags"
    Option "AutoAddDevices" "False"
    EndSection
    - with dbus/hal enabled and disabled in rc.conf
    how i make it work
    Last edited by ash (2009-04-30 19:01:41)

    the setup that works to me now is
    automatic xorg.conf with the AutAddDevices False (disable hotplug) lines
    dbus and hal enabled in deamons
    this lines instruct xorg to use xf86-input-mouse/keyboard instead of evdev. ie it looks like with evdev there is no point in xf86-input-mouse/keyboard
    Last edited by ash (2009-04-30 18:26:16)

  • Drag and Drop not working when Firefox is open

    I kept running into the problem and could not figure out why sometimes i could drag and drop and sometimes i could not.
    I just did some experimenting and found that as long as Firefox is minimized, drag and drop works fine.
    So the application can be open but all the windows need to be minimized.
    here is my firefox info Mozilla/5.0 Firefox/3.0.13

    I am having the same problem glasnostic you are not imagining things.
    I usually have finder set to detailed view mode and intermittently and seemingly randomly drag and drop will not work. I will be moving specific files from folder a to b then, all of a sudden, I click on a file like i did the last 10 and it wont budge. I found that like glasnostic switching to thumbnail view sometimes makes it work immediately. Otherwise just waiting a minute or two and trying again makes it work. This is so bizarre and is driving me crazy.
    I have experienced the same problem while attempting to drag files from finder into itunes.
    It happens to me without firefox open or running.
    The most recent time this happened I had open the following:
    -itunes (8.2.1)
    -Transmission (1.73)
    -ichat (4.08)
    -Safari (4.03)
    -Last.fm (1.542)
    on osx 10.5.8
    I'm using the logitech g5 mouse.

  • Drag and drop not working when uploading file using safari

    why i cannot drag and drop any file when using safari , and what happens the file auotmatically open while i need to upload it only , extra for that , i cannot write  any remark or fill a space while using website related to my work.
    my work is to upload drawing files using dwf file to a website so the other parties can review and give me review , and then i reply to the remark at the same place and make meeting through the same site.
    please any body can give any way to correct my mac.
    latelly i installed win7 only to use it for that website , and iam now changing from mac to win whenever i want to work , this not acceptable to me because it is waste of time beside i like the mac and it working with other application but not for safari.

    why ?
    I'm sorry, but every OS is different.  You cannot expect all features of one to be in another.  Or alternatively, for similar features, be done it the exact same way. 
    It looks to me after a quick google search that winexplorer is basically the moral equivalent of the mac's finder to present the file system in different ways.  The OSX Finder also has alternative views of the file system, i.e., icons, list, columns.  Experiment with the list and column views and see if one of them are more to your liking.
    As for winexplorer on the mac.  I don't know if this simulates it or not but there is a program called Macintosh Explorer so check that out as well.
    And finally, in the end, as I said in my earlier post, no matter what, nothing on the mac is going to change what I believe you think you can do and drop a file on a browser window and expect it to upload.

  • Why does my iMessage and Facetime not work when I am connected to a wi-fi network?

    I can not send an iMessage or connect to facetime from my iPad2 when I am connected to a wi-fi network. I had no problems with this at home but now on vacation things are not working...any ideas?

    Wanted to say Thanks! to both of you for the help. I went and found a different wi-fi to connect to and everything worked perfectly. Not sure what the deal was with the wi-fi at the vacation house but it all works now.

  • [SOLVED]Glxinfo and Glxgears not working

    This is the output i get:
    [thomas@thomas-arch ~]$ glxinfo
    name of display: :0
    Error: couldn't find RGB GLX visual or fbconfig
    [thomas@thomas-arch ~]$ glxgears
    Error: couldn't get an RGB, Double-buffered visual
    My graphics card:
    [thomas@thomas-arch ~]$ lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
    I'm unable to find a xorg.conf file on my system. (only config files in /etc/X11/xorg.conf.d/
    Any advice on how to find where I screwed up?
    Thanks!
    Solution
    Reinstall libgl
    pacman -S libgl
    Last edited by tgoossens (2012-02-11 22:38:49)

    Gusar wrote:
    tgoossens wrote:But where do I have to start looking to fix my gl problems?
    Good question. With intel graphics everything should (and ususally does) work out-of-the-box, no configuration whatsoever should be necessary. Does other 3d stuff work?
    Not really.
    I just tried to start Team Fortress 2 in Steam and got this errors:
    p11-kit: couldn't load module: /usr/lib32/pkcs11/gnome-keyring-pkcs11.so: /usr/lib32/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
    err:wgl:X11DRV_WineGL_InitOpenglInfo couldn't initialize OpenGL, expect problems
    err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
    err:d3d:InitAdapters Failed to get a gl context for default adapter
    Direct3D9 is not available without OpenGL.
    err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
    err:d3d:InitAdapters Failed to get a gl context for default adapter
    Direct3D9 is not available without OpenGL.
    Hmmm.
    After looking better at this output...
    p11-kit: couldn't load module: /usr/lib32/pkcs11/gnome-keyring-pkcs11.so: /usr/lib32/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
    Lets check that...
    Could that be it?

Maybe you are looking for