Ohh right, I didn't realise that I had to press exit. Never used VI before, must apologies :)
Still got a slight problem. I've even logged into root to delete the original file, but I still hit a dead wall. When I do:
vi /etc/yum.repos.d/flash.repo
it gives me...
Code:
E325: ATTENTION
Found a swap file by the name "/etc/yum.repos.d/.flash.repo.swp"
owned by: root dated: Sat Jul 8 15:14:04 2006
file name: /etc/yum.repos.d/flash.repo
modified: YES
user name: root host name: localhost.localdomain
process ID: 19454
While opening file "/etc/yum.repos.d/flash.repo"
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /etc/yum.repos.d/flash.repo"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/etc/yum.repos.d/.flash.repo.swp"
to avoid this message.
"/etc/yum.repos.d/flash.repo" [New File]
Hit ENTER or type command to continue
I hit [Enter] and then re-paste...
[macromedia]
name=Macromedia for i386 Linux
baseurl=http://macromedia.mplug.org/rpm/
enabled=1
gpgcheck=1
gpgkey=http://macromedia.mplug.org/FEDORA-GPG-KEY
Followed by >
ESC +
:wq
Then I paste...
yum -y install flash-plugin
....and I get this error message.....
Code:
[root@localhost ~]# yum -y install flash-plugin
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.conffile, root=root)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 104, in doConfigSetup
self.getReposFromConfig()
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 135, in getReposFromConfig
parser.read(files)
File "/usr/lib/python2.4/site-packages/yum/parser.py", line 225, in read
IncludingConfigParser.read(self,filename)
File "/usr/lib/python2.4/site-packages/yum/parser.py", line 126, in read
ConfigParser.read(self,filename)
File "/usr/lib/python2.4/ConfigParser.py", line 267, in read
self._read(fp, filename)
File "/usr/lib/python2.4/ConfigParser.py", line 462, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: ///etc/yum.repos.d/flash.repo, line: 1
'cromedia]\n'
[root@localhost ~]#
Help :(