Debian – dpkg problem – tar exists on unknown argument —warning=no-timestamp

I was upgrading Linux Debian. Everything went ok until the upgrade of dpkg.

After upgrading dpkg package I was not able to install anything, because of error with tar command.

Tar was complaining that –warning=no-timestamp is unknown parameter and program terminated with error.

So I made small trick. I renamed /bin/tar to /bin/tar.original:

mv /bin/tar /bin/tar.original

Then I wrote simple script into /bin/tar file:

#!/bin/bash

tar.original xf -

Add permission:

chmod a+x /bin/tar

The last step is reinstallation of broken packages:

apt-get install --reinstall dpkg
apt-get install --reinstall tar
No votes yet.
Please wait...

Leave a comment

6. October 2011 at 22:28 - Software engineering (Tags: , , , , , ). Both comments and pings are currently closed.

4 Responses to “Debian – dpkg problem – tar exists on unknown argument —warning=no-timestamp”

  • Saber Rastikerdar says:

    Wow thank you. That worked!

    No votes yet.
    Please wait...
  • Oscar says:

    Great solution. It worked for me too

    No votes yet.
    Please wait...
  • fm says:

    Yes!!! I was stuck in an upgrade from (very)old-stable to testing…
    Thank you !!

    No votes yet.
    Please wait...
  • Debian user says:

    Not work for me. Im still facing same error.

    No votes yet.
    Please wait...