##// END OF EJS Templates
Still errors on 11-apt.sh
vidal -
r730:47ebd0c00694
parent child
Show More
@@ -1,63 +1,50
1 1 #
2 2 # Setup APT repositories
3 3 #
4 4
5 5 # Load utility functions
6 6 . ./functions.sh
7 7
8 8 # Install and setup APT proxy configuration
9 9 if [ -z "$APT_PROXY" ] ; then
10 10 install_readonly files/apt/10proxy "${ETC_DIR}/apt/apt.conf.d/10proxy"
11 11 sed -i "s/\"\"/\"${APT_PROXY}\"/" "${ETC_DIR}/apt/apt.conf.d/10proxy"
12 12 fi
13 13
14 if [ "$BUILD_KERNEL" = false ] ; then
15 # Install APT pinning configuration for flash-kernel package
16 install_readonly files/apt/flash-kernel "${ETC_DIR}/apt/preferences.d/flash-kernel"
17
18 # Install APT sources.list
19 install_readonly files/apt/sources.list "${ETC_DIR}/apt/sources.list"
20 echo "deb ${COLLABORA_URL} ${RELEASE} rpi2" >> "${ETC_DIR}/apt/sources.list"
21
22 # Upgrade collabora package index and install collabora keyring
23 chroot_exec apt-get -qq -y update
24 # Removed --allow-unauthenticated as suggested after modification on _apt privileges
25 chroot_exec apt-get -qq -y install collabora-obs-archive-keyring
26 else # BUILD_KERNEL=true
27 # Install APT sources.list
28 install_readonly files/apt/sources.list "${ETC_DIR}/apt/sources.list"
14 # Install APT sources.list
15 install_readonly files/apt/sources.list "${ETC_DIR}/apt/sources.list"
29 16
30 17 # Use specified APT server and release
31 18 sed -i "s/\/ftp.debian.org\//\/${APT_SERVER}\//" "${ETC_DIR}/apt/sources.list"
32 19
33 20 #Fix for changing path for security updates in testing
34 21 if [ "$RELEASE" = "testing" ] ; then
35 22 sed -i "s,buster\\/updates,testing-security," "${ETC_DIR}/apt/sources.list"
36 23 sed -i "s/ buster/ ${RELEASE}/" "${ETC_DIR}/apt/sources.list"
37 24 fi
38 25
39 26 if [ -z "$RELEASE" ] ; then
40 27 # Change release in sources list
41 28 sed -i "s/ buster/ ${RELEASE}/" "${ETC_DIR}/apt/sources.list"
42 29 fi
43 30
44 31 # Upgrade package index and update all installed packages and changed dependencies
45 32 chroot_exec apt-get -qq -y update
46 33 chroot_exec apt-get -qq -y -u dist-upgrade
47 34
48 35 # Install additional packages
49 36 if [ "$APT_INCLUDES_LATE" ] ; then
50 37 chroot_exec apt-get -qq -y install $(echo "$APT_INCLUDES_LATE" |tr , ' ')
51 38 fi
52 39
53 40 # Install Debian custom packages
54 41 if [ -d packages ] ; then
55 42 for package in packages/*.deb ; do
56 43 cp "$package" "${R}"/tmp
57 44 chroot_exec dpkg --unpack /tmp/"$(basename "$package")"
58 45 done
59 46 fi
60 47
61 48 chroot_exec apt-get -qq -y -f install
62 49
63 50 chroot_exec apt-get -qq -y check
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant