l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 May 04 10:20

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] my computer has no name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] my computer has no name

begin Troy Arnold <troy-vox@zenux.net> 
> On Sat, May 03, 2003 at 11:40:43PM -0700, Peter Jay Salzman wrote:
> > troy,
> > 
> > thank you!  yes, hostname.sh must be it.   but now i'm totally confused:
> > 
> >    # The init script comes from sysvinit.
> >    satan# dpkg -S hostname.sh
> >    sysvinit: /etc/init.d/hostname.sh
> [...]
> >    
> > shouldn't apt-get install --reinstall have installed this file?
> > according to dpkg, the file should be there:
> > 
> It's in the initscripts package:
> [troy@Saiph ~]
> $ dpkg -S hostname.sh
> initscripts: /etc/init.d/hostname.sh
> $ apt-file search hostname.sh
> initscripts: etc/init.d/hostname.sh
> Now what is interesting, is that when i did an apt-file search the first
> time, the output showed something that seemed to indicate hostname.sh was
> part of sysvinit.  But when I unpacked the deb it wasn't there.  Then,
> after an 'apt-file update' I get results as above.  I don't know
> where/how these tools get their info -- I think I need to go read
> /usr/share/doc/apt

jumping jehosephat.  are you running woody?  my system looks a bit


   p@satan$ dpkg -S hostname.sh
   sysvinit: /etc/init.d/hostname.sh


   p@satan$ auto-apt search hostname.sh
   etc/init.d/hostname.sh  base/sysvinit

apt-file (didn't know about that, thanks!):

   satan# apt-file search hostname.sh
   sysvinit: etc/init.d/hostname.sh

and the package listing for sysvinit:

   p@satan$ dpkg -L sysvinit | grep hostname

all agree that hostname.sh should be in sysvinit.  in fact, there's no
package on my system named initscripts:

   satan# dpkg -l "initscr*"
   No packages found matching initscr*.

the package listing on the debian website shows hostname.sh to be in


but this is the bad behavior i'm seeing.  check this out:

### The file is there
$ ll /etc/init.d/hostname.sh 
-rwxr-xr-x   1 root   root   165 2003-05-03 23:42 /etc/init.d/hostname.sh*

### Move the file somewhere else
$ mv /etc/init.d/hostname.sh /etc/init.d/hostname.sh.orig 

### Reinstall the package
# apt-get install --reinstall sysvinit
(Reading database ... 89019 files and directories currently installed.)
Preparing to replace sysvinit 2.84-3 (using
.../sysvinit_2.84-3_i386.deb) ...

Unpacking replacement sysvinit ...
Setting up sysvinit (2.84-3) ...

### File hasn't been replaced!
$ ll /etc/init.d/hostname.sh
ls: /etc/init.d/hostname.sh: No such file or directory

i don't know what to say.  i doubt it's a bug in dpkg.  i'm kind of
stumped about it...

considering i want to reinstall all the packages on my system, it's not
really giving me a warm and fuzzy feeling...   :( :( :(   i would
**reall** like to know what's going on before reinstalling my packages.

> Glad you're close to being back in action.
please don't let me leave california without shaking your hand (and
putting one of my homebrews in it if that's the sort of thing you like)
and thanking you!   :)


GPG Instructions: http://www.dirac.org/linux/gpg
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!