Solved

apt-get update  fails on Ubuntu; tar returned error exit status 64

Posted on 2014-12-05
5
373 Views
Last Modified: 2014-12-30
Greetings,
I am attempting to run apt-get update, and getting the following error:

tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing archive /var/cache/apt/archives/bash_4.3-7ubuntu1.5_amd64.deb (--unpack):

Can anyone please tell me how to fix this?
0
Comment
Question by:bradber
  • 3
  • 2
5 Comments
 
LVL 21

Assisted Solution

by:Mazdajai
Mazdajai earned 500 total points
ID: 40484008
Try

exec /bin/tar --touch -"$@"
chmod +x /usr/local/sbin/tar 
sudo apt-get update

Open in new window


If this fails download the tar in .deb format matching your architecture and distro, replace your existing one.
0
 

Author Comment

by:bradber
ID: 40487075
Not making much progress. When I run

exec /bin/tar --touch -"$@"

I get this:  

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


Please explain what I should try next.  I am a newb on ubuntu. Running 14.04 , 64 bit. Please send instructions for replacing the existing one.
0
 
LVL 21

Accepted Solution

by:
Mazdajai earned 500 total points
ID: 40516516
To fix this you need to download the updated version of tar and replace existing one.

You can go out and download the latest tar for your distribution or search if you already have the package in the OS - Can you provide the following output?

ls -t /var/cache/apt/archives/tar_*|head -1

Open in new window

0
 

Author Comment

by:bradber
ID: 40524744
I was never able to find a real solution to this. Ended up with a work-around by setting up a "tar" file that redirected  to the real one.
0
 

Author Closing Comment

by:bradber
ID: 40524748
Even though in this case we had to accept a work-around instead of a complete solution, I always give points to anyone willing to assist.  I do appreciate the help.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
error log using ftp 7 56
bash file 10 49
How to use question mark (?) in filename with html 25 71
How to check currently configured static routes on CentOS 7? 1 51
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question