LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 09-27-2005, 04:08 AM   #1
mithereal
Member
 
Registered: Jan 2005
Location: Noscut, Arizona
Distribution: Ubuntu 10.04
Posts: 83

Rep: Reputation: 15
.deb postinst and prerm probs


ok i am making a deb archiveof one count it one script. it has no dependencies recommends etc ive made the config and md5sums scripts fine and even made the .deb fine the problem is i dont know what to do with the postinst and prerm scripts ive looked at many different howtos and such but this is not explained. for instance why do i need them it seems to give errors if i try to install built .debs w/o the specified files or if the specified files are blank. ive tried using examples from /usr/share/debhelper/autoscripts/ but none seem to suit my needs(and/or generally error out) b/c i dont have any stuff to install before or after the shell script is installed. not to mention when now due to my messups when i run synaptic i get "E: The package netcardconfig needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report." and no package list

and when i dpkg -r netcardconfig
dpkg: error processing netcardconfig (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
netcardconfig

Last edited by mithereal; 09-27-2005 at 04:21 AM.
 
Old 09-28-2005, 02:24 AM   #2
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 46
try this to remedy apt and synaptic

http://www.debian-administration.org/articles/251

and i also tried to make a deb. but failed at making a correct postinst and prerm 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
Ubuntu and Deb waynejkruse10 Linux - Software 2 08-30-2005 09:13 PM
Possible .deb file ? conrad10781 Debian 7 06-05-2005 07:28 AM
.deb aznboi12321 Linux - Software 6 03-11-2005 04:34 PM
Is "kernel-image-x_i386.deb or i586.deb the right image for P4 processor? davidas Debian 1 04-06-2004 03:50 AM
Can apt4rpm use deb repositories or install .deb packages? raylpc Linux - General 0 08-18-2003 01:49 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration