Public bug reported:

first off, my $PATH:
/home/lieter/.gem/ruby/1.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/lieter/.local/bin:/var/lib/gems/1.8/bin:/opt/calibre

Ok, stange problem:

lieter $ tar
tar: You must specify one of the `-Acdtrux' or `--test-label'  options
Try `tar --help' or `tar --usage' for more information.
lieter $ which tar
/bin/tar

lieter $ sudo apt-get install bsdtar
.........
Setting up bsdtar (2.8.4-1) ...

lieter $ which tar
/bin/tar
lieter $ tar
bsdtar: Must specify one of -c, -r, -t, -u, -x

lieter $ sudo apt-get --purge remove bsdtar
.....
Removing bsdtar ...

lieter $ which tar
/bin/tar
lieter $ tar
The program 'bsdtar' is currently not installed.  You can install it by typing:
sudo apt-get install bsdtar

lieter $ sudo apt-get --reinstall install tar
.......
Setting up tar (1.25-3) ...

lieter $ which tar
/bin/tar
lieter $ tar
The program 'bsdtar' is currently not installed.  You can install it by typing:
sudo apt-get install bsdtar

lieter $ /bin/tar
/bin/tar: You must specify one of the `-Acdtrux' or `--test-label'  options
Try `/bin/tar --help' or `/bin/tar --usage' for more information.

I can't find out why the behaviour is like this. It could be strange if
/bin/tar was using alternatives.. but it isn't. Any-one has an idea,
because removing bsdtar will leave you with a broken system if tar is
called unqualified (for a script or whatever). I would expect that
bsdtar used alternatives or that removing it wouldn't break the system.

lieter $ lsb_release -rd
Description:    Ubuntu 11.04
Release:        11.04

lieter $ apt-cache policy bsdtar
bsdtar:
  Installed: (none)
  Candidate: 2.8.4-1
  Version table:
     2.8.4-1 0
        500 http://nl.archive.ubuntu.com/ubuntu/ natty/universe amd64 Packages

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: bsdtar (not installed)
ProcVersionSignature: Ubuntu 2.6.38-11.50-generic 2.6.38.8
Uname: Linux 2.6.38-11-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Tue Oct 18 20:31:38 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: libarchive
UpgradeStatus: Upgraded to natty on 2011-05-16 (154 days ago)

** Affects: bsdtar (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bsdtar path tar

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/877662

Title:
  calling tar unqualified after removing BSD tar yields command not
  found

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bsdtar/+bug/877662/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to