Solved

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

Posted on 2014-12-05
5
362 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Install Predefined Certificate on Ubunto 4 37
SonarQube on Linux vs Windows 3 23
000webhost.com default error log 1 23
Bash script - Exit out of choice loop 2 23
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

815 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

13 Experts available now in Live!

Get 1:1 Help Now