Solved

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

Posted on 2014-12-05
5
339 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now