Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection Timing Out Although Proxy is Already Set #175

Open
njquek001 opened this issue May 13, 2024 · 1 comment
Open

Connection Timing Out Although Proxy is Already Set #175

njquek001 opened this issue May 13, 2024 · 1 comment

Comments

@njquek001
Copy link

Facing the below prompt after running the script.

0curl: (7) Failed connect to yum.oracle.com:443; Connection timed out
Could not download public-yum-ol7.repo from https://yum.oracle.com.

    Are you behind a proxy? If so, make sure the 'http_proxy' environment

    variable is set with your proxy address.

For assistance, please open an issue via GitHub: https://github.com/oracle/centos2ol/.

@njquek001
Copy link
Author

Have added the addresses in /etc/environment instead of using export.

Now facing the below issue.

[root@xxxxxxxxxxxxxx tmp]# sudo bash centos2ol.sh
Checking for required packages...
Checking your distribution...
package epel-release is not installed
Checking for yum lock...
Checking for required python packages...
Finding your repository directory...
Learning which repositories are enabled...
Traceback (most recent call last):
File "", line 6, in
File "/usr/lib/python2.7/site-packages/yum/init.py", line 1071, in
repos = property(fget=lambda self: self._getRepos(),
File "/usr/lib/python2.7/site-packages/yum/init.py", line 694, in _getRepos
self.getReposFromConfig()
File "/usr/lib/python2.7/site-packages/yum/init.py", line 567, in getReposFromConfig
self.getReposFromConfigFile(repofn, repo_age=thisrepo_age)
File "/usr/lib/python2.7/site-packages/yum/init.py", line 465, in getReposFromConfigFile
raise Errors.ConfigError(exception2msg(e))
yum.Errors.ConfigError: File contains no section headers.
file: file:https:///etc/yum.repos.d/switch-to-oraclelinux.repo, line: 1
'\r\n'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant