Skip to content

fix #2150 dpkg frontend lock - #2151

Merged
Mte90 merged 4 commits into
developfrom
Mte90/2150
May 25, 2020
Merged

Mte90 merged 4 commits into
developfrom
Mte90/2150

Conversation

@Mte90

@Mte90 Mte90 commented May 15, 2020

Copy link
Copy Markdown
Member

Summary:

fix #2150

@update-docs

update-docs Bot commented May 15, 2020 •

Copy link
Copy Markdown

Thanks for opening this pull request! Make sure CHANGELOG.md gets updated with this change, additionally any docs that need updated can be found at https://github.com/Varying-Vagrant-Vagrants/varyingvagrantvagrants.org

GitHub
The VVV docs and website. Contribute to Varying-Vagrant-Vagrants/varyingvagrantvagrants.org development by creating an account on GitHub.

@msaggiorato

Copy link
Copy Markdown
Member

What's the condition that #2150 happens on? Seems like a failed provisioner right? Or a machine that was force halted during the install process.

If that is the case, should we be removing the locks? Or forcing the user to force recreate the machine, just to avoid any potential problems with failed provisions.

@Mte90

Mte90 commented May 19, 2020

Copy link
Copy Markdown
Member Author

I think that is a provisioner fail previously but is the only way to fix it is to remove the file. On my debian system I do the same.

@macgraphic

macgraphic commented May 21, 2020 •

Copy link
Copy Markdown

I added the line to provision.sh

  # fix https://github.com/Varying-Vagrant-Vagrants/VVV/issues/2150
  rm /var/lib/dpkg/lock*

But I am still getting the same error on a 'vagrant up --provision'

default:  * Installing apt-get packages...
    default: E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
    default: E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
    default:  * Installing apt-get packages returned a failure code, cleaning up apt caches then exiting

To correct or to start VVV, I then run vagrant reload --provision

@Mte90

Mte90 commented May 21, 2020

Copy link
Copy Markdown
Member Author

I tested now the pr (because I had that problem) and worked.
Did you added that line to the right line? Are you using the develop branch or switched to the pr one?

@tomjn

tomjn commented May 21, 2020

Copy link
Copy Markdown
Member

Is there an apt or dpkg based way of clearing it? Removing the file works but if there's a better way, similar to how you can run svn cleanup then that might help avoid any strange issues encountered

@tomjn

tomjn commented May 21, 2020

Copy link
Copy Markdown
Member

Also can we get a changelog update?

@Mte90

Mte90 commented May 21, 2020

Copy link
Copy Markdown
Member Author

Changelog updated and no there isn't any way.
Remove that files is the only way to fix it with apt (debian user talking), the lock files are crate by linux processes but they are not removed if the process itself is killed (like libreoffice or vim) so you have to remove it manually.

@tomjn tomjn changed the title fix #2150 fix #2150 dpkg frontend lock May 25, 2020
@Mte90
Mte90 merged commit 8a9ea97 into develop May 25, 2020
@Mte90
Mte90 deleted the Mte90/2150 branch May 25, 2020 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to acquire the dpkg frontend lock

4 participants