LinuxQuestions.org
Register a domain and help support LQ
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, 07: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 07:39 AM.
 
Old 09-02-2002, 04:15 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
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, 07: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 07:49 AM.
 
Old 09-03-2002, 08: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, 10: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 11:02 PM.
 
Old 09-04-2002, 12:04 AM   #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-04-2002 at 12:12 AM.
 
Old 09-04-2002, 12:13 PM   #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


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
trouble uninstalling kgames dr_zayus69 Linux - Software 3 12-17-2004 05:22 PM
RedHat Enterprise and Bastille, Nessus peppiv Linux - Security 1 06-23-2004 03:11 PM
Installin PHP,Apache & Mysql on Redhat hatti_ajit Linux - Newbie 5 11-27-2003 11:25 AM
trouble running bastille edsmithers Linux - Software 5 07-15-2003 12:52 AM
Trouble uninstalling packages bsnuggs Linux - General 7 12-31-2001 10:49 AM


All times are GMT -5. The time now is 05:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration