• Home
  • Tag: apt-add-repository

Downgrading a version of kodi to stable after installing nightly build

Kodi PPAs:

https://launchpad.net/~team-xbmc/+archive/ppa ppa:team-xbmc/ppa Final release builds
https://launchpad.net/~team-xbmc/+archive/unstable ppa:team-xbmc/unstable Betas and release candidates
https://launchpad.net/~team-xbmc/+archive/xbmc-nightly ppa:team-xbmc/xbmc-nightly Nightly builds

Script to list added PPAs: aptppalist:

#! /bin/sh 
# listppa Script to get all the PPA installed on a system ready to share for reininstall
for APT in `find /etc/apt/ -name \*.list`; do
    grep -o "^deb http://ppa.launchpad.net/[a-z0-9\-]\+/[a-z0-9\-]\+" $APT | while read ENTRY ; do
        USER=`echo $ENTRY | cut -d/ -f4`
        PPA=`echo $ENTRY | cut -d/ -f5`
        echo sudo apt-add-repository ppa:$USER/$PPA
    done
done

List them:
aptppalist

sudo apt-add-repository ppa:noobslab/macbuntu
sudo apt-add-repository ppa:team-xbmc/xbmc-ppa-build-depends
sudo apt-add-repository ppa:cairo-dock-team/ppa
sudo apt-add-repository ppa:team-xbmc/unstable
sudo apt-add-repository ppa:team-xbmc/ppa
sudo apt-add-repository ppa:mc3man/trusty-media
sudo apt-add-repository ppa:rolfbensch/sane-git

First remove the PPA with:

sudo add-apt-repository -r

Eg: Remove the unstable release PPA:
sudo apt-add-repository ppa:team-xbmc/unstable -r

Add stable PPA:

sudo apt-add-repository ppa:team-xbmc/ppa
sudo apt update

List available versions of kodi:

apt-cache showpkg kodi

Force install a particular version with apt

sudo apt install kodi=2:17.4+git20170822.1009-final-0xenial kodi-bin=2:17.4+git20170822.1009-final-0xenial

I chose both kodi and kodi-bin because when I chose kodi alone, it told me that kodi-bin was a dependency problem.

Ref: http://kodi.wiki/view/Official_Ubuntu_PPA