LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2017, 01:10 PM   #1
Conotor
LQ Newbie
 
Registered: Sep 2017
Posts: 7

Rep: Reputation: Disabled
Virtual box repo is an html file


I am trying to install virtualbox 5.1 on scientific linux 7 (based on rhel 7) and I am following these instructions: https://www.tecmint.com/install-virt...centos-fedora/

When I get to 'yum update', I get
<<<<<<
Loaded plugins: langpacks


File contains no section headers.
file: file:///etc/yum.repos.d/oldvb.repo, line: 1
'<!DOCTYPE html><html data-adblockkey=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANnylWw2vLY4hUn9w06zQKbhKBfvjFUCsdFlb6TdQhxb9RXWXuI4t31c+ o8fYOv/s8q1LGPga3DE1L/tHU4LENMCAwEAAQ==_qm4u8PiKNP876fYfLBO7qI8a0DwqGxLTCssFS3FP50Y34NceL/yq5CMqSmZXumEtM2RYfpLOWimq1wmSxhXynw==><head><meta charset="utf-8" /><style type="... (the whole file)
>>>>>>

this happens for any yum command I do until I remove the virtualbox.repo (was oldvb.repo in example)

I looked at the repo's there and the virtaulbox one is the only one that looks htmly. Running the wget command just gets me another html like virtaul box repo. Is the repo I am getting wrong, and is there a way to get it better?
 
Old 09-20-2017, 01:17 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,401
Blog Entries: 10

Rep: Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213
you downloaded the wrong file.
just search for a better tutorial and start again.
 
Old 09-20-2017, 01:21 PM   #3
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: mint,deb,centos
Posts: 818

Rep: Reputation: 228Reputation: 228Reputation: 228
I did not click and read the link you posted, but if I was installing vbox I would follow the instructions that VirtualBox provides.

https://www.virtualbox.org/wiki/Linux_Downloads

Use the link at the end of the line that looks like this:
Oracle Linux 7 ("OL7") / Red Hat Enterprise Linux 7 ("RHEL7") / CentOS 7 AMD64

and scroll down the page and look for RPM-based Linux distributions.

Good luck.

Last edited by erik2282; 09-20-2017 at 01:23 PM.
 
Old 09-20-2017, 02:00 PM   #4
Conotor
LQ Newbie
 
Registered: Sep 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks, but I had seen that page before and did not know how to do anything with it. What do you do after unpacking the files from the ziped file? Also all of my rpm commands fail with "import read failed(2)" and I don't know where to put the linked text files with the key and the header.
 
Old 09-20-2017, 02:41 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138
What zip file? You're making this far too complicated...

Just skip to the end of the RPM-based Linux Distributions section to the part that says "Users of Oracle Linux / RHEL can add the Oracle Linux repo file to /etc/yum.repos.d/". Download the linked file (this one), put it in /etc/yum.repos.d/, and then run "yum install VirtualBox-5.1".

Last edited by suicidaleggroll; 09-20-2017 at 02:43 PM.
 
2 members found this post helpful.
Old 09-20-2017, 04:44 PM   #6
Conotor
LQ Newbie
 
Registered: Sep 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks, that worked.
 
Old 09-21-2017, 03:44 AM   #7
KinexMediaBrampton
LQ Newbie
 
Registered: Sep 2017
Posts: 1

Rep: Reputation: Disabled
Thanks!

<link removed>

Last edited by rtmistler; 09-21-2017 at 08:12 AM. Reason: Advertising removed
 
Old 09-21-2017, 08:14 AM   #8
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,354
Blog Entries: 13

Rep: Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411
Quote:
Originally Posted by KinexMediaBrampton View Post
Thanks!

<link removed>
@KinexMediaBrampton,

Welcome to LQ.

Do not hijack a thread with non-relevant information.
Do not post your website for personal advertising purposes.
Use the Contact Us link at the bottom of the LQ form to inquire about advertising.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Issues trying to install Virtual Box Guest Additions on RHEL v6.5 in Virtual Box JockVSJock Linux - Virtualization and Cloud 4 07-13-2015 09:14 PM
Unable to install DSL on .vdi file for Virtual Box JockVSJock Linux - Virtualization and Cloud 9 02-22-2013 09:47 AM
Slackware 13.37 and Virtual Box 4.1 / Virtual Box 4.012 chris_kzn Slackware 4 07-29-2011 01:51 AM
[SOLVED] Virtual box not finding a 2nd ISO file davholla Linux - Virtualization and Cloud 3 11-17-2010 06:43 AM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration