[R-sig-Debian] R 2.11.0 for Ubuntu 10.04 Lucid Lynx on CRAN [solved]
Mauricio Zambrano
hzambran.newsgroups at gmail.com
Tue Jun 8 13:21:38 CEST 2010
Thank you very much Christophe by your advice.
However, my situation was the opposite to yours, because I'm behind a
proxy but my sudo account couldn't see it, and when looked for the
proxy configuration of the sudo account with :
$ sudo printenv | grep proxy
the result was empty.
Finally, thanks to all the advice received in this thread, I could fix
the problem by editing the 'sudoers' file, and making the environment
variables related to the proxy (http_proxy, https_proxy, ftp_proxy)
were preserved for the sudo account, as described here:
http://blog.troyastle.com/2009/11/proxy-environment-variables-and-sudo-in.html
using 'gedit' instead of 'visudo', as described here:
http://bapoumba.wordpress.com/2008/05/07/edit-etcsudoers-with-gedit-in-ubuntu-hardy-heron/
I put the 'R-sig-Debian' list in cc just in case this may be useful
for somebody else
Thank you very much to you all.
Kind regards,
Mauricio
2010/6/7 Christophe Bonenfant <bonenfan at biomserv.univ-lyon1.fr>:
> To check whether you have a proxy configured type in a console (as a root):
>
> echo $http_proxy
>
> It should be empty to have no problem.
>
> Christophe
>
> Le 07/06/2010 18:36, Mauricio Zambrano a écrit :
>> 2010/6/7 Michael Rutter <mar36 at psu.edu>:
>>>
>>>
>>> On 06/07/2010 10:56 AM, Mauricio Zambrano wrote:
>>>>
>>>> Thanks Michael for your answer.
>>>>
>>>> The problem is just there: when I use the sudo account, I got the
>>>> following error message:
>>>>
>>>>
>>>> update.packages()
>>>>
>>>> --- Please select a CRAN mirror for use in this session ---
>>>> Loading Tcl/Tk interface ... done
>>>> Warning: unable to access index for repository
>>>> http://cran.rakanu.com/src/contrib
>>>> Warning message:
>>>> In open.connection(con, "r") :
>>>> unable to connect to 'cran.r-project.org' on port 80.
>>>>
>>>>
>>>> But when I use my normal user account (within the same terminal form
>>>> which I run sudo), I can update the packages, but creating a new
>>>> version of the packages library within my user account.
>>>>
>>>> So I think the problem is not the Internet/proxy configuration of my
>>>> PC, but something else that it is very strange for me.
>>>>
>>>> Thanks in advance,
>>>>
>>>> Mauricio
>>>>
>>>
>>> Mauricio,
>>>
>>> You may have an error in sudoers file, which configures how the sudo command
>>> can be used. This would be an Ubuntu issue, and more information can be
>>> found here: https://help.ubuntu.com/community/Sudoers.
>>>
>>> You may also want to try:
>>>
>>> update.packages(repos="http://lib.stat.cmu.edu/R/CRAN")
>>
>> I tried with this and it doesn't work.
>>
>>>
>>> This will bypass the need to get a list of mirrors. You could also try your
>>> local cran mirror. If this fails, you have an issue accessing the internet
>>> via sudo in Ubuntu and you would need to figure out why.
>>
>> After some verifications, I confirmed that the problem is in my
>> internet connection via sudo with some applications and not in the
>> upgraded version of Ubuntu 10.4 with R 2.9.11, and I'll try to figure
>> out why.
>>
>> (what is strange is that 'sudo apt-get update' works fine from the
>> console but 'update.packages()' doesn't within a sudo session...)
>>
>>>
>>> Hope this helps,
>>> Michael
>>>
>>> --
>>> Dr. Michael A. Rutter
>>> School of Science
>>> Penn State Erie, The Behrend College
>>> Station Road
>>> Erie, PA 16563
>>> http://math.bd.psu.edu/faculty/rutter
>>>
>>
>> Thank you very much for your valuable help.
>>
>> Kind regards,
>>
>> Mauricio
>>
>
> --
> ________________________________________________________
>
> UMR CNRS 5558,
> Laboratoire Biométrie et Biologie Évolutive
> Université Claude Bernard, Lyon 1
> 43, boulevard du 11 novembre 1918
> 69622 Villeurbanne Cedex
> FRANCE \\\
> ( ">
> Phone : (+33) 4 72 44 81 11 )(
> Fax: (+33) 4 72 43 13 88 // )
> --//""--
>
> http://krikouille.free.fr/~bonenfan/site/kris.html
> ________________________________________________________
>
--
===============================
Linux user #454569 -- Ubuntu user #17469
===============================
Dept. of Civil and Env. Engineering
University of Trento, Italy
More information about the R-SIG-Debian
mailing list