Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runit apt repo may not be installed #3

Open
ChrisLundquist opened this issue Oct 16, 2012 · 0 comments
Open

runit apt repo may not be installed #3

ChrisLundquist opened this issue Oct 16, 2012 · 0 comments

Comments

@ChrisLundquist
Copy link

The runit package is provided by

deb http://us.archive.ubuntu.com/ubuntu/ precise universe

the recipe failed when the below was the case ( on an absolute barebones install )

# cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu precise main
# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"

a poor fix might be something like

bash "ensure ubuntu universe is present" do
    universe_repo = node["ubuntu"]["universe_repo"] || "deb http://us.archive.ubuntu.com/ubuntu/ precise universe"
    code  "echo  #{universe_repo} >> /etc/apt/sources.list"
    not_if "grep #{universe_repo} /etc/apt/sources.list"
end
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

No branches or pull requests

1 participant