[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2014-12-05
5
Medium Priority
?
528 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 21

Assisted Solution

by:Mazdajai
Mazdajai earned 1500 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 1500 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Fine Tune your automatic Updates for Ubuntu / Debian
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

650 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