vagrant depends on bsdtar which depends on libarchive13

Bug #1503565 reported by Jeff Silverman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vagrant (Ubuntu)
New
Undecided
Unassigned

Bug Description

Installing vagrant on 15.04 fails because of a bad dependency.

jeffs@jeffs-desktop:~$ sudo apt-get install vagrant
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 vagrant : Depends: bsdtar but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
jeffs@jeffs-desktop:~$ sudo apt-get install bsdtar
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 bsdtar : Depends: libarchive13 (= 3.1.2-9ubuntu0.1) but 3.1.2-11 is to be installed
E: Unable to correct problems, you have held broken packages.
jeffs@jeffs-desktop:~$ dpkg -l libarchive13
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-========================-=================-=================-=====================================================
ii libarchive13:amd64 3.1.2-11 amd64 Multi-format archive and compression library (shared
jeffs@jeffs-desktop:~$

jeffs@jeffs-desktop:~$ lsb_release -rd
Description: Ubuntu 15.04
Release: 15.04
jeffs@jeffs-desktop:~$

jeffs@jeffs-desktop:~$ apt-cache policy vagrant
vagrant:
  Installed: (none)
  Candidate: 1.4.3+dfsg1-1
  Version table:
     1.6.5+dfsg1-2 0
         99 http://us.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
     1.4.3+dfsg1-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ utopic/universe amd64 Packages
jeffs@jeffs-desktop:~$

I expected apt-get to do its usual superb job of working out the dependencies and load additional packages to resolve them.

Jeff

Jeff

Revision history for this message
Jeff Silverman (jeffsilverm) wrote :

Works find on 12.04

Revision history for this message
Jeff Silverman (jeffsilverm) wrote :

Works fine on 14.04

Revision history for this message
Jean-Pierre van Riel (jpvr) wrote :

doesn't have this error on 16.04

Revision history for this message
Matthew Giassa (mgiassa) wrote :

Recently encountered this issue on Ubuntu 16.04.1 on 4.4.0-38-generic #57-Ubuntu SMP.

Seems the build label in `libarchive13` is either incorrect, or `bsdtar` is expecting the wrong version.

I was able to fix this via:

apt-get download bsdtar
mkdir temp_out
dpkg-deb -R bsdtar_3.1.2-11build1_amd64.deb temp_out
# Modify the "control file in temp_out/DEBIAN, changed version from "3.1.2-11build1" to "3.2.1-2~ubuntu16.04.1." Save, close.
dpkg-deb -b temp_out FIXED_bsdtar.deb
sudo dpkg -i ./FIXED_bsdtar.deb

Afterwards, I was able to successfully install and use vagrant via: "sudo apt-get install vagrant". The only downside to this approach is I'll eventually have to resolve this manually when the bsdtar package is actually fixed.

Revision history for this message
Tomas Lipensky (tlip) wrote :

As I have posted on https://askubuntu.com/questions/860979/i-tried-to-install-vagrant-in-ubuntu-but-failed-in-dependence-problem-libarchiv :

i had the same problem. I found solution:

1) Download bsdtar suited for Debian 16.04 (mainly for libarchive13 in U16.04): https://packages.ubuntu.com/xenial/amd64/bsdtar/download cd /tmp wget http://security.ubuntu.com/ubuntu/pool/universe/liba/libarchive/bsdtar_3.1.2-11ubuntu0.16.04.3_amd64.deb

2) Install it locally: apt install /tmp/bsdtar_3.1.2-11ubuntu0.16.04.3_amd64.deb

3) than vagrant can be installed: apt install vagrant

This package should be added to Ubuntu 16.04 repository. I don't know how to create request for that.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.