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


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

Install latest version of wine on Ubuntu

wget https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

Fix for missing apt-add-repository in Debian

Anant Shrivastava has created an excellent script to provide an equal functionality in Debian which is misssing this command.

I’ve taken the liberty to include the script below, however I’ll refer you to the original post for details and updates.

#!/bin/bash
if [ $# -eq 1 ]
NM=`uname -a && date`
NAME=`echo $NM | md5sum | cut -f1 -d" "`
then
	ppa_name=`echo "$1" | cut -d":" -f2 -s`
	if [ -z "$ppa_name" ]
	then
		echo "PPA name not found"
		echo "Utility to add PPA repositories in your debian machine"
		echo "$0 ppa:user/ppa-name"
	else
		echo "$ppa_name"
		echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu lucid main" >> /etc/apt/sources.list
		apt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txt
		key=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`
		apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
		rm -rf /tmp/${NAME}_apt_add_key.txt
	fi
else
	echo "Utility to add PPA repositories in your debian machine"
	echo "$0 ppa:user/ppa-name"
fi

 


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.