Standalone box and ISA proxy and yum update

  • zillah
  • Student
  • Student
  • zillah
  • Posts: 77

Post 3+ Months Ago

With my box FC5 at work (Active Directory), I have been able to access the net , I have not logged in with my AD account , I logged in as username : root and password : forum,,,fake one (I know security implication, I have done this for test ).

First time when I tried to open a browser, window popped up asking me username and password for authentication to use internet (I entered my username: zillah and password:ad123 my active directory account,,,fake ), then I was able to browse the net.

When I tried to use the command below (via Terminal):

[root@local]#yum install yum (yumes),,,,It did not work, I believe because of the authentication (ISA proxy) that I mentioned above.

With the proxy , I followed the link below :

http://fedora.redhat.com/docs/yum/sn-yu ... erver.html

1- I added the line below to /etc/yum.conf
Code: [ Select ]
proxy=http://proxy.ewrq.au:8080,,,,,,,,,,,,,,, because our ISA uses 8080 proxy
proxy_username=zillah,,,,,,,,,,,,,,,,,,,,,,,,,,,,fake username
proxy_password=ad123,,,,,,,,,,,,,,,,,,,,,,,,,,,fake password
  1. proxy=http://proxy.ewrq.au:8080,,,,,,,,,,,,,,, because our ISA uses 8080 proxy
  2. proxy_username=zillah,,,,,,,,,,,,,,,,,,,,,,,,,,,,fake username
  3. proxy_password=ad123,,,,,,,,,,,,,,,,,,,,,,,,,,,fake password


Then I tried to use this :
[root]#yum update yum,,,,,,,,,,,,,,,,,,I received this error :

Loading "installation" Plugin
Settingup Update Process
Setting up repositories
Can not find a valid baseurl for repo:case
Error: Cannot find valid baseurl for repo:core


2- I removed the configuration above and I tried these:
Code: [ Select ]
http_proxy=" http://zillah:ad123@proxy.ewrq.au:8080 "
export http_proxy
yum update
  1. http_proxy=" http://zillah:ad123@proxy.ewrq.au:8080 "
  2. export http_proxy
  3. yum update


[root@localhost # yum update yum
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 80, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 177, in getOptionsConfig
self.doConfigSetup(fn=opts.conffil* e, root=root)
File "/usr/lib/python2.4/site-packages/* yum/__init__.py", line 102, in doConfigSetup
self.conf = config.readMainConfig(fn, root)
File "/usr/lib/python2.4/site-packages/* yum/config.py", line 567, in readMainConfig
confparser.read(configfile)
File "/usr/lib/python2.4/site-packages/* yum/parser.py", line 126, in read
ConfigParser.read(self,filename)
File "/usr/lib/python2.4/ConfigParser.p* y", line 267, in read
self._read(fp, filename)
File "/usr/lib/python2.4/ConfigParser.p* y", line 490, in _read
raise e
ConfigParser.ParsingError: File contains parsing errors: /etc/yum.conf
[line 15]: 'export http_proxy\n'
[line 16]: 'yum update\n'
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

The FC5 box isn't really a standalone box if you are logging in to an Active Directory domain. I don't think that has anything to do with your problem, I just wanted to clarify that.
I see some .py files (parser.py and config.py) listed before the final parsing error. Does .py have anything to do with python scripts? If so, could that be part of the problem?
  • zillah
  • Student
  • Student
  • zillah
  • Posts: 77

Post 3+ Months Ago

Quote:
The FC5 box isn't really a standalone box if you are logging in to an Active Directory domain.

In my case , it is , because I have not logged in to the box with my domain's username .
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

why dont you login to AD?

check out this post and see if it helps http://www.fedoraforum.org/forum/showth ... readid=742
  • zillah
  • Student
  • Student
  • zillah
  • Posts: 77

Post 3+ Months Ago

Quote:
why dont you login to AD?

I need to install samba to be authenticated by AD
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

zillah wrote:
Quote:
why dont you login to AD?

I need to install samba to be authenticated by AD

that is true. so then why are you trying to update yum? why not just install samba?
  • zillah
  • Student
  • Student
  • zillah
  • Posts: 77

Post 3+ Months Ago

1- First I updarded (not fresh installation) from FC5 to FC6

2- Then I configured /etc/yum.conf with this :
proxy=http://proxy.ewrq.au:8080
proxy_username=zillah
proxy_password=ad123

3- I tried from a shell console as root
[root@localhost ~]# yum update yum
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mi...ore-6&arch=i386 error was
[Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Error: Cannot find a valid baseurl for repo: core


4- [root@localhost ~]# yum clean all
Loading "installonlyn" plugin
Cleaning up Everything


5- [root@localhost ~]# yum update yum
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mir...re-6&arch=i386 error was
[Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Error: Cannot find a valid baseurl for repo: core
[root@localhost ~]#
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

i'd say backup your data and do a fresh install of FC6. it's very possible that doing an upgrade was what broke it. if everything you try gives you an error, you might as well.
one more thing you could try is reinstalling yum though, i guess..
like go to http://rpm.pbone.net and search for yum for FC6, then do
Code: [ Select ]
# rpm -qa | grep -i yum
# rpm -e yum-whatever-comes-up.rpm
# rpm -ivh /path/to/file/yum-version.rpm
# yum update
  1. # rpm -qa | grep -i yum
  2. # rpm -e yum-whatever-comes-up.rpm
  3. # rpm -ivh /path/to/file/yum-version.rpm
  4. # yum update

and if that doesn't work, do a fresh install. somethings broken more deeply than what you'd like to explore lol
  • zillah
  • Student
  • Student
  • zillah
  • Posts: 77

Post 3+ Months Ago

Quote:
and if that doesn't work, do a fresh install. somethings broken more deeply than what you'd like to explore lol

I have installed fresh copy FC6 on VMWare 6, and I tried this :
[root@localhost ~]# yum update yum
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirror ... &arch=i386 error was
[Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Error: Cannot find a valid baseurl for repo: core
  • zillah
  • Student
  • Student
  • zillah
  • Posts: 77

Post 3+ Months Ago

Sorry for duplicate
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

why are you still doing yum update yum?
just do a yum update.
what are the contents of /etc/yum.conf and /etc/yum.repos.d ?

if this file doesn't exist, try adding it and doing "yum update"
File: /etc/yum.repos.d/fedora-core.repo
Quote:
[core]
name=Fedora Core $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-debuginfo]
name=Fedora Core $releasever - $basearch - Debug
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-source]
name=Fedora Core $releasever - Source
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

if this file does exist, try putting a # in front of the mirrorlist line (such that #mirrorlist=...) and remove the # from the baseurl= line and do this for each entry
  • zillah
  • Student
  • Student
  • zillah
  • Posts: 77

Post 3+ Months Ago

Quote:
what are the contents of /etc/yum.conf

[root@localhost ~]# gedit /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
proxy=http://proxy.ewrq.au:8080,,,,,,,,,,,,,,this is our real port for proxy
proxy_username=zillah,,,,,I tried this as well EWRQ\zillah
proxy_password=ad123
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d






[root@localhost yum.repos.d]# gedit fedora-core.repo
Quote:
[core]
name=Fedora Core $releasever - $basearch
#I uncomment baseurl and comment mirrorlist
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core- $releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-debuginfo]
name=Fedora Core $releasever - $basearch - Debug
#I uncomment baseurl and comment mirrorlist
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/debug/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-source]
name=Fedora Core $releasever - Source
#I uncomment baseurl and comment mirrorlist
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/source/SRPMS/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY



Then I tried :
[root@localhost ~]# yum update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
http://download.fedora.redhat.com/pub/f ... repomd.xml: [Errno 4] IOError: <urlopen error nonnumeric port: '8080?'>
Trying other mirror.
Error: Cannot open/read repomd.xml file for repository: core
[root@localhost ~]#
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

check out this post, someone there has the same error you're getting now.
  • zillah
  • Student
  • Student
  • zillah
  • Posts: 77

Post 3+ Months Ago

Quote:
check out this post, someone there has the same error you're getting now.

At work , I tried ADSL connection instead of LAN connection and it worked, since we do not have any proxy at ADSL connection , therefore I am pretty sure that the problem with proxy setting.

I will follow the link that you have posted, but it is very lengthy, but I have to go through it to find out if there is something similar to my issue.
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

<ctrl><f>
*prompt appears*
nonnumerical port 8080
<enter>

:]
  • mdduggarclc
  • Born
  • Born
  • mdduggarclc
  • Posts: 1

Post 3+ Months Ago

I had the same problem and corrected it by adding a / slash after the proxy number in my /etc/yum.config file.
It works fine now.

Post Information

  • Total Posts in this topic: 16 posts
  • Users browsing this forum: No registered users and 23 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.