?
Solved

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

Posted on 2014-12-05
5
Medium Priority
?
457 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses
Course of the Month10 days, 14 hours left to enroll

770 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