1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00
iiab/scripts/calibre-install-latest-rpi.sh

38 lines
1.6 KiB
Bash
Raw Permalink Normal View History

#!/bin/bash
2018-05-11 01:18:23 +00:00
# Thanks to Jerry Vonau (https://github.com/jvonau) who made this critical
# breakthrough possible!
#
2018-06-29 02:19:33 +00:00
# This script worked up to late May 2018 with Calibre 3.23 -- and again began
# working in late June 2018 with Calibre 3.26 -- whereas Calibre 3.24 and 3.25
# failed to "apt install" below, back in early/mid-June 2018:
2018-06-10 05:23:02 +00:00
#
# The following packages have unmet dependencies:
# calibre : Depends: python-pyqt5 (>= 5.10.1+dfsg-2) but 5.10.1+dfsg-1+rpi1 is to be installed
# E: Unable to correct problems, you have held broken packages.
#
2018-06-29 02:08:31 +00:00
# Debian approach (calibre-install-latest.sh) was the interim workaround in
# mid-June 2018, which did install Calibre 3.24 & 3.25 at that time, however
# this prevented resulting IIAB microSD's from booting in RPi Zero W:
2018-06-10 05:31:46 +00:00
#
2018-06-29 02:08:31 +00:00
# https://github.com/iiab/iiab/pull/834
2018-06-10 05:23:02 +00:00
#
2018-06-29 02:08:31 +00:00
# Calibre 3.26.x is the latest available from testing as of 2018-06-28:
2018-05-11 01:18:23 +00:00
#
# http://raspbian.raspberrypi.org/raspbian/pool/main/c/calibre/
# http://archive.raspbian.org/raspbian/pool/main/c/calibre/
# https://packages.debian.org/search?keywords=calibre
# http://deb.debian.org/debian/pool/main/c/calibre/
#
# Might break future updates; you have been warned.
export DEBIAN_FRONTEND=noninteractive
2018-05-11 03:59:37 +00:00
# Prepares to update to latest from testing
echo "deb http://raspbian.raspberrypi.org/raspbian/ testing main" > /etc/apt/sources.list.d/rpi-testing.list
apt update
apt -y install calibre calibre-bin
2018-05-11 03:59:37 +00:00
# Removes last line, safer than: rm /etc/apt/sources.list.d/rpi-testing.list
sed -i '$ d' /etc/apt/sources.list.d/rpi-testing.list
# Clears the cache of testing
apt update