Coder Social home page Coder Social logo

apt's People

Contributors

adamhjk avatar apsoto avatar btm avatar fnichol avatar mattray avatar schisamo avatar sometimesfood avatar vishvananda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

apt's Issues

apt_repository should be able to modify existing repo source files

apt_repository should be able to modify existing repo source files.

apt_repository 'foo' do
  uri 'http://example.org'
  distribution 'stable'
  components ['main']
  action :add
end

apt_repository 'foo' do
  uri 'http://example.org/some/completely/different/uri'
  distribution 'bleeding_edge'
  components ['nonfree']
  action :add
end

Expected: This should create a foo repository in /etc/apt/sources.list.d/. This repository should have the long URI, the bleeding_edge distribution and the nonfree component.

Actual behaviour: apt_repository creates the first repository and completely ignores the second definition.

deb_src does not work as advertised

The readme says:

deb_src: whether or not to add the repository as a source repo as well

So, when setting "deb_src true", I would assume this adds deb-src as well as the deb entry. Instead, however, it switches to only adding the deb-src entry.

Not sure if the readme or the code is wrong, but these don't match.

handle google-chrome repos

As best I can work out the apt LWRP cannot handle the google-chrome ppa:
http://www.ubuntuupdates.org/ppas/8

apt_repository "google-chrome-stable" do
  uri "http://dl.google.com/linux/chrome/"
  #distribution 'deb' #node['lsb']['codename']
  components ["main", "stable"]
  key "https://dl-ssl.google.com/linux/linux_signing_key.pub"
  action :add
end

Yields

Err http://dl.google.com lucid/stable Packages
  404  Not Found
Err http://archive.canonical.com lucid Release.gpg
  Could not connect to archive.canonical.com:80 (91.189.88.33). - connect (110: Connection timed out)
Ign http://archive.canonical.com lucid Release
Ign http://archive.canonical.com lucid/partner Packages
Ign http://archive.canonical.com lucid/partner Packages
Err http://archive.canonical.com lucid/partner Packages
  Unable to connect to archive.canonical.com:http:
Fetched 13.8kB in 21s (656B/s)
STDERR: W: Failed to fetch http://archive.canonical.com/dists/lucid/Release.gpg  Could not connect to archive.canonical.com:80 (91.189.88.33). - connect (110: Connection timed out)

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/lucid/main/binary-amd64/Packages.gz  404  Not Found

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/lucid/stable/binary-amd64/Packages.gz  404  Not Found

W: Failed to fetch http://archive.canonical.com/dists/lucid/partner/binary-amd64/Packages.gz  Unable to connect to archive.canonical.com:http:

E: Some index files failed to download, they have been ignored, or old ones used instead.
---- End output of apt-get update ----

Retries for installing neu apt key

Keyservers tend to be offline from time to time and addidtional to iss #7 from hedgehog the apt-key adv should have a certain number of retries and a retry_delay
Somehting like:

execute "install-key #{new_resource.key}" do
   command "apt-key adv --keyserver #{new_resource.keyserver} --recv #{new_resource.key}"
   action :nothing
   retries 3
   retry_delay 5
end.run_action(:run)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.