LinuxQuestions.org
Visit Jeremy's Blog.
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 09-02-2002, 06:43 AM   #1
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
trouble installin/uninstalling Bastille-2.0.1.1on redhat 7.2


i'm having trouble installing/uninstalling Bastille-2.0.1.1. the install went without error.

i'm running redhat 7.2 on a pentium 200 hp vectra. When I attempt to start Bastille, I get the following error message:
*************************************************************************
[root@directtv root]# InteractiveBastille
In string, @lists now must be written as \@lists at /usr/sbin/InteractiveBastille line 307, near "bastille-linux-discuss@lists"
Execution of /usr/sbin/InteractiveBastille

e aborted due to compilation errors.
[root@directtv root]#
************************************************************************************

attempting to uninstall Bastille-2.0.1-1.1.i386.rpm, i get:

[root@directtv root]# rpm -e Bastille-2.0.1-1.1.i386.rpm
error: package Bastille-2.0.1-1.1.i386.rpm is not installed

attempting to update i get:


[root@directtv root]# rpm -Uvh Bastille-2.0.1-1.1.i386.rpm
Preparing... ########################################### [100%]
package Bastille-2.0.1-1.1 is already installed


i get the same error messages for uninstalling or updating perl-Curses-1.05-10.i386.rpm and perl-Tk-800.022-11.i386.rpm.

Last edited by rioguia; 09-03-2002 at 06:39 AM.
 
Old 09-02-2002, 03:15 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Why don't you try to fix the script itself first and see if that works?
It's either a Bash shellscript or Perl.

For (un)install there's a few options to pass certain stages like uninstall scripts, test upgrade, or force an upgrade. Please read the manual and experiment with a combination of options.

// Moderator note: moved to /Software: it's either a problem with Bastille itself or install/deinstall using RPM, not a security problem.
 
Old 09-03-2002, 06:47 AM   #3
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Original Poster
Rep: Reputation: 30
To Install or uninstall; that is the question

Thanks for your vote of confidence in " fixing the script itself" but i've probably got a better chance of authoring the sequel to Hamlet (Fortinbras Lives Happliy Everafter) with 1000 monkeys randomly typing on keyboards. Maybe someone can explain what would I be looking for regarding compilation errors?

regarding rpm options, i have done more research and experimenting with RPM using the force option and obtained the error messages below. Any other thoughts?
*****************************************************************
[root@directtv rpms]# rpm --force -ivh Bastille-Tk-module-1.3.0-1.0.i386.rpm
error: open of Bastille-Tk-module-1.3.0-1.0.i386.rpm failed: No such file or directory
[root@directtv rpms]# rpm --force -ivh Bastille-1.3.0-1.0.i386.rpm
error: open of Bastille-1.3.0-1.0.i386.rpm failed: No such file or directory
[root@directtv rpms]#

Last edited by rioguia; 09-03-2002 at 06:49 AM.
 
Old 09-03-2002, 07:40 AM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
it means that the file is not there, it is not in the rpms directory. and as for uninstalling packages - lots of ppl make the same mistake including whole file name in the rpm -e command - like you did
[root@directtv root]# rpm -e Bastille-2.0.1-1.1.i386.rpm
This is incorrect, merely because you uninstall packages from the RPM database which only knows the package name not the rpm file it came originaly with. So the correct form of the rpm uninstall command is
[root@directtv root]# rpm -e Bastille
 
Old 09-03-2002, 09:39 PM   #5
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Original Poster
Rep: Reputation: 30
Thanks. I'm sure your point is correct but it doesn't fix my problem because I get the same error message. Do i have to be in a specific directory to issue this command?
**************************************************************************
[root@directtv root]# ls
anaconda-ks.cfg mimeinstall.results
Bastille-1.3.0-1.0.i386.rpm nsmail
Bastille-Tk-module-1.3.0-1.0.i386.rpm OpenOffice.org1.0.1
cle.sxw plugin131_02b.trace
dcp01464crop\.jpg rpms
gtoaster-1.0Beta5-1.src.rpm smoothwall-0.9.9.iso
hsschls.doc trustix-1.5-20020814.src.iso
install guide upgrade.log
kernel_depend.txt upgrade.log.syslog
linux-2.4.19

[root@directtv root]# rpm -e Bastille
error: package Bastille is not installed

[root@directtv root]# rpm -e Bastille-Tk
error: package Bastille-Tk is not installed

[root@directtv root]# rpm -e Bastille-Tk-module
error: package Bastille-Tk-module is not installed


Last edited by rioguia; 09-03-2002 at 10:02 PM.
 
Old 09-03-2002, 11:04 PM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
It means that it is not installed (you don't have to be in a particular directory to remove a package as well as to install it. In the case of installation you need to provide relative/obsolete path to the package to be installed)
So try now to install bastille with
Code:
[root@directtv root]# ls
anaconda-ks.cfg mimeinstall.results
Bastille-1.3.0-1.0.i386.rpm nsmail
Bastille-Tk-module-1.3.0-1.0.i386.rpm OpenOffice.org1.0.1
cle.sxw plugin131_02b.trace
dcp01464crop\.jpg rpms
gtoaster-1.0Beta5-1.src.rpm smoothwall-0.9.9.iso
hsschls.doc trustix-1.5-20020814.src.iso
install guide upgrade.log
kernel_depend.txt upgrade.log.syslog
linux-2.4.19
[root@directtv root]# rpm -ihv Bastille-*.rpm
To get the exact name of the package if it is installed run
Code:
rpm -qa|grep -i bastille

Last edited by neo77777; 09-03-2002 at 11:12 PM.
 
Old 09-04-2002, 11:13 AM   #7
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Original Poster
Rep: Reputation: 30
Thanks -- It all worked out fine

Your help is greatly appreciated. My problems stemmed from a combination of my errors. First, the compilation error was due to a problem with my dependence on RPM's. It's a great tool but you still have to pay attention. Apparently, the box I am working on is so old (pentium 233) that Redhat's RPM (ARCH 586) were not compatible for my box, a fact which escaped me when I did the RPM update. Since I downloaded proper RPM's, reinstalled the Bastille RPMs using -forced ivh etc and all is working great.

Bastille is a great program so far. Very intelligent in its design and a great primer for a person new to linux networking because it explains the security decisions being presented by the scripts.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble uninstalling kgames dr_zayus69 Linux - Software 3 12-17-2004 04:22 PM
RedHat Enterprise and Bastille, Nessus peppiv Linux - Security 1 06-23-2004 02:11 PM
Installin PHP,Apache & Mysql on Redhat hatti_ajit Linux - Newbie 5 11-27-2003 10:25 AM
trouble running bastille edsmithers Linux - Software 5 07-14-2003 11:52 PM
Trouble uninstalling packages bsnuggs Linux - General 7 12-31-2001 09:49 AM

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

All times are GMT -5. The time now is 03:02 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