Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Ubuntu failure with #185

Closed
chrisvire opened this issue Sep 25, 2017 · 3 comments
Closed

Ubuntu failure with #185

chrisvire opened this issue Sep 25, 2017 · 3 comments
Labels

Comments

@chrisvire
Copy link

I am using:
VirtualBox 5.1.28
Vagrant 2.0.0 with vagrant-cachier 1.2.1
VM: Ubuntu 16.04 (chrisvire/xenial64)
Host: iMac (macOS 10.12.6)

When I use apt commands (e.g. "sudo apt update"), I get the following error:

W: Can't drop privileges for downloading as file '/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_xenial_InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

Hmm... I just tried it on my Linux Desktop as host (16.04) and I am getting a similar error:

W: Can't drop privileges for downloading as file '/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_xenial_InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

@thorr18
Copy link

thorr18 commented Nov 14, 2017

The fix for me was to change the Vagrantfile to use _apt as the owner instead of vagrant:

  if Vagrant.has_plugin?("vagrant-cachier")
    config.cache.scope = :box
    config.cache.synced_folder_opts = {
       owner: "_apt",
    }
  end

Vagrant 2.0.1
Base Box: "bento/ubuntu-16.10"
Plugins:
vagrant-cachier (1.2.1)
vagrant-share (1.1.9, system)
virtualbox (0.8.6)

Error:

default: Running: inline script
default: W
default: : 
default: Can't drop privileges for downloading as file '/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_yakkety_InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
default: Reading package lists...

@thorr18
Copy link

thorr18 commented Nov 14, 2017

Found duplicate #175

@fgrehm fgrehm added the ignored label Nov 22, 2022
@fgrehm
Copy link
Owner

fgrehm commented Nov 22, 2022

Hey, sorry for the silence here but this project is looking for maintainers 😅

As per #193, I've added the ignored label and will close this issue. Thanks for the interest in the project and LMK if you want to step up and take ownership of this project on that other issue 👋

@fgrehm fgrehm closed this as completed Nov 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants