[tbb-bugs] #22467 [Applications/Tor Browser]: System upgrade on a Jessie VM in Gitian is randomly failing

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jun 23 19:20:12 UTC 2017


#22467: System upgrade on a Jessie VM in Gitian is randomly failing
--------------------------------------+--------------------------
 Reporter:  gk                        |          Owner:  tbb-team
     Type:  defect                    |         Status:  new
 Priority:  Medium                    |      Milestone:
Component:  Applications/Tor Browser  |        Version:
 Severity:  Normal                    |     Resolution:
 Keywords:  tbb-gitian                |  Actual Points:
Parent ID:                            |         Points:
 Reviewer:                            |        Sponsor:
--------------------------------------+--------------------------

Comment (by dcf):

 I encountered this problem again today during `Building sandbox-linux for
 jessie amd64`. I tried applying the following workaround and it seems to
 work. The problem seems to be related to `linux-image-xxxx` trying to
 upgrade itself during `dist-upgrade` while `grub` is not installed, which
 causes the post-installation script to fail. My idea was to ensure that
 `linux-image-xxxx` is upgraded before removing `grub` and doing `dist-
 upgrade`.

 {{{
 diff --git a/target-bin/upgrade-system.sh b/target-bin/upgrade-system.sh
 index 9384229..795c3b9 100644
 --- a/target-bin/upgrade-system.sh
 +++ b/target-bin/upgrade-system.sh
 @@ -6,6 +6,9 @@ set -e

  mkdir -p /var/cache/gitian

 +DEBIAN_FRONTEND=noninteractive apt-get -y install grub
 +DEBIAN_FRONTEND=noninteractive apt-get -y install linux-image-$(uname -r)
 +
  # remove obsolete grub, it causes package dependency issues
  apt-get -q -y purge grub > /dev/null 2>&1 || true

 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22467#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tbb-bugs mailing list