LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-17-2011, 04:39 AM   #16
Sanju22
LQ Newbie
 
Registered: Jun 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled

I have some 5 files in that path.
And, I'm using Fedora 8.
Plz, gimme the link for Fedora 8.
 
Old 06-17-2011, 04:53 AM   #17
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
What is the output of

#rpm -qa gedit

If it doesn't give any output, then gedit is obviously not there.which I think is the case from your previous posts.

Create new repo file to use yum in /etc/yum.repos.d and try again as colucix said.

If still that diesn't work, I'd suggest you to download the respective rpm and install it.
 
Old 06-17-2011, 04:53 AM   #18
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Fedora 8 has been dismissed long time ago. Maybe the problem is that your repositories don't point to the right place anymore. If you have 5 files in /etc/yum.repos.d, you have to edit them to point to the proper location. Try to edit the file /etc/yum.repos.d/fedora.repo and change the first baseurl to
Code:
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Fedora/$basearch/os/
Most likely you have to uncomment the baseurl line and comment the mirrorlist line.
 
0 members found this post helpful.
Old 06-17-2011, 05:04 AM   #19
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I would not recommend to run Fedora 8 at all. It is unsupported for a long time, you will not get any security updates and bugfixes and will run into serious problems when trying to run newer software on it.
Go for a recent version or, if you want something with longer support, try CentOS or Scientific Linux, both are Red Hat-based and have a much longer support cycle.
 
0 members found this post helpful.
Old 06-17-2011, 05:15 AM   #20
Sanju22
LQ Newbie
 
Registered: Jun 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Sayan Acharjee View Post
What is the output of

#rpm -qa gedit

If it doesn't give any output, then gedit is obviously not there.which I think is the case from your previous posts.

Create new repo file to use yum in /etc/yum.repos.d and try again as colucix said.

If still that diesn't work, I'd suggest you to download the respective rpm and install it.



It didn't give any output. Would you mind giving me the respectiv link from where I can download the package?
 
Old 06-17-2011, 05:19 AM   #21
Sanju22
LQ Newbie
 
Registered: Jun 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colucix View Post
Fedora 8 has been dismissed long time ago. Maybe the problem is that your repositories don't point to the right place anymore. If you have 5 files in /etc/yum.repos.d, you have to edit them to point to the proper location. Try to edit the file /etc/yum.repos.d/fedora.repo and change the first baseurl to
Code:
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Fedora/$basearch/os/
Most likely you have to uncomment the baseurl line and comment the mirrorlist line.
I'm a real beginner. I did copy-pasted wat you said. It showed no difference
 
Old 06-17-2011, 05:21 AM   #22
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Ah, duplicate thread of http://www.linuxquestions.org/questi...66#post4388366

EDIT: oops, sorry, meant to do this the other way round... Will report other thread
 
Old 06-17-2011, 05:22 AM   #23
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Quote:
Originally Posted by Sanju22 View Post
It didn't give any output. Would you mind giving me the respectiv link from where I can download the package?
Try the following link,

http://rpm.pbone.net/index.php3/stat....i386.rpm.html

Here you'll get the gedit rpm's for Fedora 8. It may give some dependency error while installing, if so install the dependencies and then try again.
 
Old 06-17-2011, 05:31 AM   #24
Sanju22
LQ Newbie
 
Registered: Jun 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colucix View Post
Fedora 8 has been dismissed long time ago. Maybe the problem is that your repositories don't point to the right place anymore. If you have 5 files in /etc/yum.repos.d, you have to edit them to point to the proper location. Try to edit the file /etc/yum.repos.d/fedora.repo and change the first baseurl to
Code:
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Fedora/$basearch/os/
Most likely you have to uncomment the baseurl line and comment the mirrorlist line.
It says like this when I tried:
For:
# yum install gedit
The output is:
Config Error: File contains no section headers.
file: file://///etc/yum.repos.d/fedora.repo, line: 1
'\xef\xbb\xbf[fedora]\n'
 
Old 06-17-2011, 05:42 AM   #25
Sanju22
LQ Newbie
 
Registered: Jun 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
Now, yum command isn't working
I think, my code in fedora.repo has errors:
The follwing is the code:

[fedora]
name=Fedora 8 - i386
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/i386/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-8&arch=i386
enabled = 0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[fedora-debuginfo]
name=Fedora 8 - i386 - Debug
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/i386/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-8&arch=i386
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[fedora-source]
name=Fedora 8 - Source
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-8&arch=i386
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY


If errors are there, plz help me to correct them.

Last edited by Sanju22; 06-17-2011 at 05:45 AM.
 
Old 06-17-2011, 05:44 AM   #26
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Do you have a good reason for not upgrading your Fedora? Like people have said, it is rather out of date by now...

In what way is yum not working? Do you get an error message?
 
Old 06-17-2011, 05:49 AM   #27
Sanju22
LQ Newbie
 
Registered: Jun 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Snark1994 View Post
Do you have a good reason for not upgrading your Fedora? Like people have said, it is rather out of date by now...

In what way is yum not working? Do you get an error message?
I'm sorry for posting multiple threads of same problem.

I gotta work on a project which needs a software called NS2(Network Simulator 2). Our teacher was like Fedora 8 is the best for this sofware. So, I installed only Fedora 8.

Yes, I get the following error:
# yum install gedit
Config Error: File contains no section headers.
file: file://///etc/yum.repos.d/fedora.repo, line: 1
'\xef\xbb\xbf[fedora]\n'

Last edited by Sanju22; 06-17-2011 at 05:51 AM.
 
Old 06-17-2011, 06:01 AM   #28
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
It's sounding like you've got some strange characters at the start of the file... Perhaps try:
Code:
cp /etc/yum.repos.d/fedora.repo{,.backup}
dd if=/etc/yum.repos.d/fedora.repo.backup of=/etc/yum.repos.d/fedora.repo bs=1 skip=3
Hopefully this should delete the first three hex characters which have been added. If it all goes wrong, then you can just copy the /etc/yum.repos.d/fedora.repo.backup file back
 
1 members found this post helpful.
Old 06-17-2011, 06:05 AM   #29
Sanju22
LQ Newbie
 
Registered: Jun 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Snark1994 View Post
It's sounding like you've got some strange characters at the start of the file... Perhaps try:
Code:
cp /etc/yum.repos.d/fedora.repo{,.backup}
dd if=/etc/yum.repos.d/fedora.repo.backup of=/etc/yum.repos.d/fedora.repo bs=1 skip=3
Hopefully this should delete the first three hex characters which have been added. If it all goes wrong, then you can just copy the /etc/yum.repos.d/fedora.repo.backup file back
Waoh! It worked. Now, when I try:
# yum install gedit
It displayed:
Setting up Install Process
Parsing package install arguments
No package gedit available.
Nothing to do


Wat do I do now?

Last edited by Sanju22; 06-17-2011 at 06:06 AM.
 
Old 06-17-2011, 06:08 AM   #30
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Try this fedora.repo
Code:
[fedora]
name=Fedora 8 - i386
failovermethod=priority
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Fedora/$basearch/os/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-8&arch=i386
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[fedora-debuginfo]
name=Fedora 8 - i386 - Debug
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/i386/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-8&arch=i386
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[fedora-source]
name=Fedora 8 - Source
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-8&arch=i386
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
Basically you had all the repositories disabled (see enabled=0 in your file). Of the three repos in file fedora.repo you need only the first one enabled. You can leave the others out (not to mention they are not available anymore).
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:36 PM.

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