Ubiquity is downloading unecessary updates while installing

Asked by systemrom

When I'm running the Ubiquity installer, everything goes fine. But there is a problem after the part "reading CD-ROM" and before the part "configuring Time Zone". The installer try to "download files" (E.g downloading file 18 of 23 | download file 110 of 117), and this phase take too long time. I need to click in the "skip" button some times to skip this phase or disable internet conection to avoid this issue. Looks like Ubiquity is trying to downlod packages over the internet during this phase of install process. If I disable my internet conection, the problem do not occurs.

There is some configuration that can I perform in the Ubiquity files to disable this "automatic-update" option when installing the OS like?

P.s The options "download updates when install OS" and "Install third- party software for graphics and Wi-fi hardware, Flash, Mp3 and other media" is unchecked.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
systemrom (systemrom) said :
#1

log from /var/log/installer/debug when the problem occurs

....
Aug 19 10:47:41 debconf (filter): <-- PROGRESS INFO debconf-apt-progress/preparing
Aug 19 10:47:41 debconf (filter): widget found for apt-setup/progress/title
debconf (developer): <-- METAGET debconf-apt-progress/preparing description
debconf (developer): --> 1 Por favor, aguarde...
Aug 19 10:47:41 debconf (filter): --> 0 OK
Aug 19 10:47:41 debconf (filter): <-- PROGRESS SET 200
Aug 19 10:47:41 debconf (filter): widget found for apt-setup/progress/title
Aug 19 10:47:41 debconf (filter): --> 0 OK
Aug 19 10:47:41 debconf (filter): <-- PROGRESS INFO apt-setup/progress/cdrom
Aug 19 10:47:41 debconf (filter): widget found for apt-setup/progress/title
debconf (developer): <-- METAGET apt-setup/progress/cdrom description
debconf (developer): --> 1 Lendo o CD-ROM...
Aug 19 10:47:41 debconf (filter): --> 0 OK
Aug 19 10:47:42 debconf (filter): <-- GET cdrom-detect/hybrid
debconf (developer): <-- GET cdrom-detect/hybrid
debconf (developer): --> 10 cdrom-detect/hybrid doesn't exist
Aug 19 10:47:42 debconf (filter): <-- GET cdrom-detect/usb-hdd
debconf (developer): <-- GET cdrom-detect/usb-hdd
debconf (developer): --> 10 cdrom-detect/usb-hdd doesn't exist
Aug 19 10:47:42 debconf (filter): <-- GET mirror/protocol
debconf (developer): <-- GET mirror/protocol
debconf (developer): --> 1 http
Aug 19 10:47:42 debconf (filter): <-- GET mirror/http/proxy
debconf (developer): <-- GET mirror/http/proxy
debconf (developer): --> 1
Aug 19 10:47:42 debconf (filter): <-- GET debconf/priority
debconf (developer): <-- GET debconf/priority
debconf (developer): --> 1 high
Aug 19 10:47:42 debconf (filter): <-- GET debian-installer/locale
debconf (developer): <-- GET debian-installer/locale
debconf (developer): --> 1 pt_BR.UTF-8
Aug 19 10:47:42 debconf (filter): <-- PROGRESS SET 300
Aug 19 10:47:42 debconf (filter): widget found for apt-setup/progress/title
Aug 19 10:47:42 debconf (filter): --> 0 OK
Aug 19 10:47:42 debconf (filter): <-- GET mirror/protocol
debconf (developer): <-- GET mirror/protocol
debconf (developer): --> 1 http
Aug 19 10:47:42 debconf (filter): <-- GET mirror/http/proxy
debconf (developer): <-- GET mirror/http/proxy
debconf (developer): --> 1
Aug 19 10:47:42 debconf (filter): <-- GET debconf/priority
debconf (developer): <-- GET debconf/priority
debconf (developer): --> 1 high
Aug 19 10:47:42 debconf (filter): <-- GET debian-installer/locale
debconf (developer): <-- GET debian-installer/locale
debconf (developer): --> 1 pt_BR.UTF-8
Aug 19 10:47:43 debconf (filter): <-- DATA debconf-apt-progress/preparing type text
debconf (developer): <-- DATA debconf-apt-progress/preparing type text
debconf (developer): --> 10 Template type already set
Aug 19 10:47:43 debconf (filter): <-- DATA debconf-apt-progress/preparing description Por favor, aguarde...
debconf (developer): <-- DATA debconf-apt-progress/preparing description Por\ favor,\ aguarde...
debconf (developer): --> 0
Aug 19 10:47:43 debconf (filter): <-- PROGRESS INFO debconf-apt-progress/preparing
Aug 19 10:47:43 debconf (filter): widget found for apt-setup/progress/title
debconf (developer): <-- METAGET debconf-apt-progress/preparing description
debconf (developer): --> 1 Por favor, aguarde...
Aug 19 10:47:43 debconf (filter): --> 0 OK
Aug 19 10:47:43 debconf (filter): <-- PROGRESS SET 300
Aug 19 10:47:43 debconf (filter): widget found for apt-setup/progress/title
Aug 19 10:47:43 debconf (filter): --> 0 OK
Aug 19 10:47:43 debconf (filter): <-- DATA debconf-apt-progress/info type text
debconf (developer): <-- DATA debconf-apt-progress/info type text
debconf (developer): --> 10 Template type already set
Aug 19 10:47:43 debconf (filter): <-- DATA debconf-apt-progress/info description Obtendo arquivo 1 de 27
debconf (developer): <-- DATA debconf-apt-progress/info description Obtendo\ arquivo\ 1\ de\ 27
debconf (developer): --> 0
Aug 19 10:47:43 debconf (filter): <-- PROGRESS INFO debconf-apt-progress/info
Aug 19 10:47:43 debconf (filter): widget found for apt-setup/progress/title
debconf (developer): <-- METAGET debconf-apt-progress/info description
debconf (developer): --> 1 Obtendo arquivo 1 de 27
Aug 19 10:47:43 debconf (filter): --> 0 OK
Aug 19 10:47:43 debconf (filter): <-- PROGRESS SET 300
Aug 19 10:47:43 debconf (filter): widget found for apt-setup/progress/title
Aug 19 10:47:43 debconf (filter): --> 0 OK
Aug 19 10:47:43 debconf (filter): <-- DATA debconf-apt-progress/info type text
debconf (developer): <-- DATA debconf-apt-progress/info type text
debconf (developer): --> 10 Template type already set
Aug 19 10:47:43 debconf (filter): <-- DATA debconf-apt-progress/info description Obtendo arquivo 2 de 26
debconf (developer): <-- DATA debconf-apt-progress/info description Obtendo\ arquivo\ 2\ de\ 26
debconf (developer): --> 0
Aug 19 10:47:43 debconf (filter): <-- PROGRESS INFO debconf-apt-progress/info
Aug 19 10:47:43 debconf (filter): widget found for apt-setup/progress/title
debconf (developer): <-- METAGET debconf-apt-progress/info description
debconf (developer): --> 1 Obtendo arquivo 2 de 26
....

Revision history for this message
systemrom (systemrom) said :
#2

I am on Ubuntu 16.04.1
Ubiquity Version 2.21.63.2

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
systemrom (systemrom) said :
#4

I found out the solution to the problem. The downloads were performed by the Ubiquity Installer. So you need to edit 2 files.

Go to:
 /usr/lib/ubiquity/apt-setup

open and edit the file: apt-setup-signed-release

### Section:
.
.
.
# Slightly awkward output format, e.g.:
# 'http://archive.ubuntu.com/ubuntu/dists/hardy/Release' archive.ubuntu.com_ubuntu_dists_hardy_Release 0
lines="$($chroot $ROOT \
  apt-get -o APT::Get::List-Cleanup=false \
   -o Dir::Etc::sourcelist="$file" update --print-uris | \
  grep "^'.*'")"

NEWLINE='
'
OLD_IFS="$IFS"
.
.
.

CHANGE TO:

.
.
.
# Slightly awkward output format, e.g.:
# 'http://archive.ubuntu.com/ubuntu/dists/hardy/Release' archive.ubuntu.com_ubuntu_dists_hardy_Release 0
lines="$($chroot $ROOT \
  apt-get clean

NEWLINE='
'
OLD_IFS="$IFS"
.
.
.

And Go to: /usr/lib/ubiquity/apt-setup

open and edit the file: apt-setup-verify

### Section 1:
.
.
.
# Ubuntu change: network sources are always valid; apt will cope
 # gracefully later, even though the network may not be available
 # now.
 return 0

 tmp=$($chroot $ROOT tempfile)
 echo "$line" > $ROOT$tmp
 code=0
 $logoutput $intarget debconf-apt-progress --logstderr $dap_opts -- \
  apt-get -o APT::Get::List-Cleanup=false \
   -o Dir::Etc::sourcelist=$tmp $ASV_TIMEOUT update || code=$?
 if [ $code -eq 30 ]; then
  exit 30 # canceled
 elif [ $code -eq 0 ]; then
  rm -f $ROOT$tmp
 else
  rm -f $ROOT$tmp
  false
 fi
}
.
.
.

CHANGE TO

.
.
.
# Ubuntu change: network sources are always valid; apt will cope
 # gracefully later, even though the network may not be available
 # now.
 return 0

 tmp=$($chroot $ROOT tempfile)
 echo "$line" > $ROOT$tmp
 code=0
 $logoutput $intarget debconf-apt-progress --logstderr $dap_opts -- \
  apt-get clean=false \
   -o Dir::Etc::sourcelist=$tmp $ASV_TIMEOUT update || code=$?
 if [ $code -eq 30 ]; then
  exit 30 # canceled
 elif [ $code -eq 0 ]; then
  rm -f $ROOT$tmp
 else
  rm -f $ROOT$tmp
  false
 fi
}

### Section 2:

.
.
.
# Ubuntu change: need to run apt-get update for everything in one go here,
# since we've disabled the run in the valid function above. Doing everything
# in one go also allows apt-get to cache resolver failures and connection
# timeouts and so be significantly faster when the network is unavailable.
tmp=$($chroot $ROOT tempfile)
cat "$file" > $ROOT$tmp
if [ "$PROGRESS" ]; then
 DAP_OPTS="--dlwaypoint 100 --from $PROGRESS_FROM --to $PROGRESS_TO"
fi
$logoutput $intarget debconf-apt-progress --logstderr $DAP_OPTS -- \
 apt-get -o APT::Get::List-Cleanup=false \
  -o Dir::Etc::sourcelist=$tmp $ASV_TIMEOUT update || true
rm -f $ROOT$tmp

if [ "$PROGRESS" ]; then
 tot_items=$(grep -Ev "^(#.*|)[[:space:]]*$" $file | wc -l)
 p_from=$PROGRESS_FROM
fi
.
.
.

CHANGE TO

.
.
.
# Ubuntu change: need to run apt-get update for everything in one go here,
# since we've disabled the run in the valid function above. Doing everything
# in one go also allows apt-get to cache resolver failures and connection
# timeouts and so be significantly faster when the network is unavailable.
tmp=$($chroot $ROOT tempfile)
cat "$file" > $ROOT$tmp
if [ "$PROGRESS" ]; then
 DAP_OPTS="--dlwaypoint 100 --from $PROGRESS_FROM --to $PROGRESS_TO"
fi
$logoutput $intarget debconf-apt-progress --logstderr $DAP_OPTS -- \
 apt-get clean=false \
  -o Dir::Etc::sourcelist=$tmp $ASV_TIMEOUT update || true
rm -f $ROOT$tmp

if [ "$PROGRESS" ]; then
 tot_items=$(grep -Ev "^(#.*|)[[:space:]]*$" $file | wc -l)
 p_from=$PROGRESS_FROM
fi
.
.
.

Save and reboot. Now no unexpected downloads while installing.