Stefan Lingenhöfer wrote:
> It helped. It helped with my first problem and it updated. But it updated to what? IsHTS Tvheadend 4.1-2038~gdaf2f88 a nightly? Because I don't wanted a nightly. And what is the 4.1 anyways? Can't find anything about it on the "Roadmap"
Sorry I should have told you to checkout release/4.0 branch!
e.g. git checkout release/4.0
4.1 is what will become 4.2 - releases are an even number, dev is an odd number.
>
> Can I go back with the help of your tutorial to a stable, but more recent version then my 4.0.8 which I had?
Of course but make sure you use an older backup from 4.0.8 - by default after a new installation Tvheadend would have automatically backed up your old config and placed it in the backup directory, usually /home/hts/.hts/tvheadend/backup.
Quick guide to restoring a backup.
Stop Tvheadend
sudo service tvheadend stop
Drop down to the hts user & go to the .hts config directory.
sudo -u hts /bin/bash.
cd ~/.hts/
Make a temp copy of your current config in case anything goes wrong.
cp -ar tvheadend/ tvheadend_backup
Find a backup to restore.
ls -lah ~/.hts/tvheadend/backup
----------------------------------
total 2.4G
drwx------ 2 hts video 4.0K May 13 09:03 .
drwxr-xr-x 17 hts hts 4.0K May 13 11:07 ..
-rw-rw-rw- 1 hts video 7.9M Mar 26 17:13 4.1-1576~g52ed773.tar.bz2
-rw-rw-rw- 1 hts video 6.9M Mar 28 13:11 4.1-1736~g9329b58.tar.bz2
-rw-rw-rw- 1 hts video 6.8M Mar 28 15:33 4.1-1760~g97a3db5.tar.bz2
-rw-rw-rw- 1 hts video 12M Mar 28 15:40 4.1-1761~ge271083.tar.bz2
-rw-rw-rw- 1 hts video 15M Mar 30 12:24 4.1-1762~ga004ac3.tar.bz2
-rw-rw-rw- 1 hts video 15M Apr 9 20:02 4.1-1772~g3a827e7.tar.bz2
-rw-rw-rw- 1 hts video 15M Apr 14 07:41 4.1-1851~g71e8b00.tar.bz2
-rw-rw-rw- 1 hts video 16M Apr 16 00:23 4.1-1882~gf4f261d.tar.bz2
-rw-rw-rw- 1 hts video 16M Apr 21 14:46 4.1-1898~gf23c2d8.tar.bz2
-rw-rw-rw- 1 hts video 15M Apr 21 14:09 4.1-1927~gac2d90e.tar.bz2
-rw-rw-rw- 1 hts video 16M Apr 21 14:55 4.1-1929~g2a70a90-dirty.tar.bz2
-rw-rw-rw- 1 hts video 15M Apr 21 14:07 4.1-1929~g2a70a90.tar.bz2
-rw-rw-rw- 1 hts video 86M Apr 26 19:14 4.1-1931~gc3eefc6.tar.bz2
-rw-rw-rw- 1 hts video 84M Apr 29 14:33 4.1-1942~g4244439.tar.bz2
-rw-rw-rw- 1 hts video 87M May 5 22:46 4.1-1945~g5374573.tar.bz2
-rw-rw-rw- 1 hts video 1017M May 12 15:19 4.1-1977~gec222e5.tar.bz2
-rw-rw-rw- 1 hts video 1015M May 13 09:14 4.1-2029~gf4cce41.tar.bz2
Copy your chosen backup to your home dir, for this example I'm going to be using 4.1-2029~gf4cce41.tar.bz2.
cp ~/.hts/tvheadend/backup/4.1-2029~gf4cce41.tar.bz2 ~/
Now time to clear out your old config.
rm -r /home/hts/.hts/tvheadend/*
We should still be in the .hts folder at this point with an empty tvheadend directory, if not.
cd ~/.hts/
Now we restore our saved backup tar that we previously placed in the home directory - we must be in the tvheadend directory first!
cd tvheadend
tar xvfp ~/4.1-2029~gf4cce41.tar.bz2
You should see a lot of output while the backup is restoring.
If everything goes to plan we should see our old config in the tvheadend directory.
ls -lah
-----------------
total 7.0M
drwxr-xr-x 17 hts hts 4.0K May 13 11:07 .
drwxr-xr-x 4 hts hts 4.0K May 15 00:17 ..
drwx------ 2 hts hts 4.0K Apr 22 19:05 accesscontrol
drwx------ 2 hts video 4.0K May 13 09:03 backup
drwx------ 2 hts hts 32K May 14 17:26 bouquet
drwx------ 2 hts hts 4.0K May 7 14:25 caclient
drwx------ 4 hts video 4.0K Apr 20 09:45 channel
-rw------- 1 hts video 894 May 13 09:14 config
drwx------ 5 hts hts 4.0K May 9 03:00 dvr
-rw------- 1 hts video 6.9M May 13 11:06 epgdb.v2
drwx------ 5 hts hts 4.0K Apr 26 22:04 epggrab
drwx------ 2 hts video 4.0K May 5 22:46 esfilter
drwx------ 4 hts hts 4.0K Mar 28 15:37 imagecache
drwx------ 5 hts hts 4.0K Apr 26 19:24 input
-rw-r--r-- 1 hts video 22 May 13 11:07 .lock
drwx------ 2 hts video 4.0K May 4 20:37 muxsched
drwx------ 2 hts video 4.0K Apr 9 23:15 passwd
drwx------ 2 hts hts 4.0K Mar 24 12:13 profile
drwx------ 2 hts hts 4.0K Apr 20 10:04 service_mapper
-rw------- 1 hts hts 47 May 13 11:07 superuser
drwx------ 2 hts hts 4.0K Mar 24 14:08 timeshift
Clean up the old backups.
rm -r ~/.hts/tvheadend_backup
You may want to keep hold of your saved tar, but if not.
rm ~/4.1-2029~gf4cce41.tar.bz2
Now exit from the hts user and drop back down to your own user.
exit
Now lets install an older package version.
Firstly find the desired version - the output below will differ on your system..
apt-cache showpkg tvheadend
---------------------------
Package: tvheadend
Versions:
4.1-2035~g5cbc518 (/var/lib/dpkg/status)
Description Language:
File: /var/lib/dpkg/status
MD5: 0f65df826ed6783c2ea3100fb296fdae
Reverse Depends:
tvheadend-dbg,tvheadend 4.1-2035~g5cbc518
Dependencies:
4.1-2035~g5cbc518 - libavahi-client3 (2 0.6.16) libavahi-common3 (2 0.6.16) libc6 (2 2.15) libdbus-1-3 (2 1.0.2) libssl1.0.0 (2 1.0.0) libstdc++6 (2 4.1.1) liburiparser1 (2 0.6.0) zlib1g (2 1:1.1.4) xmltv-util (0 (null)) hts-tvheadend (0 (null)) showtime (0 (null))
Provides:
4.1-2035~g5cbc518 -
Reverse Provides:
Now install the version we want.
apt-get install tvheadend=4.1-2035~g5cbc518
And if everything goes to plan you should be back up and running :)
Hope this helps.
<<