Giter VIP home page Giter VIP logo

Comments (7)

chelnak avatar chelnak commented on September 2, 2024 1

Hello! We are doing some house keeping and noticed that this issue has been open for a long time.

We're going to close it but please do raise another issue if the issue still persists. 😄

from puppetlabs-apt.

daenney avatar daenney commented on September 2, 2024

Thanks for bringing this up. The problem is that Mint is a variant of Debian, not an Ubuntu remix, and as such is reported as Debian back to Facter. The Ubuntu PPA's are geared towards being used with Ubuntu and you can't assume just about any PPA works with non-Ubuntu.

That being said I do agree with you that you should be able to use PPA's on non-Ubuntu versions but if that causes you to break your system you're on your own at that point.

The reason the current implementation fails for non-Ubuntu is because Debian and thus Mint until Wheezy did not have a version of python-software-propreties packaged that also included the /usr/bin/add-apt-repository binary.

This implementation should be changed to allow PPA to be used on Wheezy and above.

@Debilski: Could you give me the values of Facter's lsb* facts that are returned for Mint?

from puppetlabs-apt.

Debilski avatar Debilski commented on September 2, 2024

Sure. I’ve currently only access to a Mint 13 LTS and a Mint Debian Edition (which is based on squeeze, because it is an older installation).

# Mint 13 LTS
$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=13
DISTRIB_CODENAME=maya
DISTRIB_DESCRIPTION="Linux Mint 13 Maya"
$ cat /etc/debian_version 
wheezy/sid
$ facter
lsbdistcodename => maya
lsbdistdescription => Linux Mint 13 Maya
lsbdistid => LinuxMint
lsbdistrelease => 13
lsbmajdistrelease => 13
operatingsystem => Debian
operatingsystemmajrelease => wheezy/sid
operatingsystemrelease => wheezy/sid
osfamily => Debian

# Mint Debian (squeeze)
$ cat /etc/lsb-release 
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=1
DISTRIB_CODENAME=debian
DISTRIB_DESCRIPTION="Linux Mint Debian Edition"
$ cat /etc/debian_version 
6.0.9
$ facter
lsbdistcodename => debian
lsbdistdescription => Linux Mint Debian Edition
lsbdistid => LinuxMint
lsbdistrelease => 1
lsbmajdistrelease => 1
operatingsystem => Debian
operatingsystemmajrelease => 6
operatingsystemrelease => 6.0.9
osfamily => Debian

However, I always thought that the non-debian edition Mints were clearly based on Ubuntu. And in fact Mint 13 includes the Ubuntu repos and patches its own version of python-software-properties including apt-add-repository:

$ apt-cache policy python-software-properties
python-software-properties:
  Installed: 0.82.7-1linuxmint2
  Candidate: 0.82.7-1linuxmint2
  Version table:
     0.82.7.7 0
        500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
     0.82.7.5 0
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
 *** 0.82.7-1linuxmint2 0
        700 http://packages.linuxmint.com/ maya/upstream amd64 Packages
        100 /var/lib/dpkg/status
     0.82.7 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

The same is not true for older versions of Mint Debian Edition, which does not include add-apt-repository:

$ apt-cache policy python-software-properties 
python-software-properties:
  Installed: 0.60.debian-3
  Candidate: 0.60.debian-3
  Version table:
 *** 0.60.debian-3 0
        500 http://ftp.debian.de/debian/ squeeze/main amd64 Packages
        100 /var/lib/dpkg/status

So, all in all it may as well be a problem with facter (1.7.5) which causes the problems by assigning the wrong operatingsystem* to the Ubuntu based Mint 13.

from puppetlabs-apt.

daenney avatar daenney commented on September 2, 2024

Oh, Mint is an Ubuntu remix after all unless it's the Debian Edition, damn. Looks like Facter needs to be taught to recognise non-LMDE's as Ubuntu instead.

from puppetlabs-apt.

daenney avatar daenney commented on September 2, 2024

@apenney @adrienthebo: What to do?

from puppetlabs-apt.

adrienthebo avatar adrienthebo commented on September 2, 2024

Perhaps add a custom fact that determines if the add-apt-repository binary is available, and use that instead of checking the operating system?

from puppetlabs-apt.

daenney avatar daenney commented on September 2, 2024

I was considering rewriting this into a native type which would also fix the issue I think.

from puppetlabs-apt.

Related Issues (20)

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.