Building failed. Could not resolve 'archive.ubuntu.com'

Asked by Andrew

Look like there is no connection to the server. I need help to fix it and this is the copy of my build.log

Build (/usr/bin/uck-gui --wait-before-exit) started at 2017-11-08 15:59:59
>> Ubuntu Customization Kit 2.4.7 on Ubuntu 17.04, 4.10.0-38-generic x86_64
Starting CD remastering on Wed Nov 8 15:59:59 -03 2017
Customization dir=/home/andrew/tmp/customization-scripts
Mounting ISO image...
mount: /dev/loop0 is write-protected, mounting read-only
Unpacking ISO image...
Unmounting ISO image...
Mounting SquashFS image...
Unpacking SquashFS image...
Unmounting SquashFS image...
Removing win32 files...
Creating apt cache...
Creating root home...
Mounting /proc
Mounting /sys
Mounting /dev/pts
Mounting /tmp
Mounting /home/andrew/tmp/remaster-root-home
Mounting /home/andrew/tmp/remaster-apt-cache
Mounting /run
Mounting /home/andrew/tmp/customization-scripts
Copying resolv.conf...
cp: not writing through dangling symlink '/home/andrew/tmp/remaster-root/etc/resolv.conf'
Failed to copy resolv.conf, error=1
Copying fstab/mtab...
Creating DBUS uuid...
Deactivating initctl...
mv: cannot stat '/sbin/initctl': No such file or directory
Deactivating update-grub...
Deactivating grub-probe...
Hacking grub-probe postinst/postrm...
Remembering kernel update state...
>> Customizing: Ubuntu 17.10, 4.13.0-16-generic x86_64
Err:1 http://archive.ubuntu.com/ubuntu artful InRelease
  Could not resolve 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu artful-security InRelease
  Could not resolve 'security.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu artful-updates InRelease
  Could not resolve 'archive.ubuntu.com'
Reading package lists...
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/artful/InRelease Could not resolve 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/artful-security/InRelease Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/artful-updates/InRelease Could not resolve 'archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Installing language packs (en)...
Reading package lists...
Building dependency tree...
Reading state information...
language-pack-en is already the newest version (1:17.10+20171012).
language-pack-en-base is already the newest version (1:17.10+20171012).
language-pack-gnome-en is already the newest version (1:17.10+20171012).
language-pack-gnome-en-base is already the newest version (1:17.10+20171012).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
Removing unnecessary language packages...
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
  firefox-locale-de* firefox-locale-es* firefox-locale-fr* firefox-locale-it*
  firefox-locale-pt* firefox-locale-ru* firefox-locale-zh-hans*
  language-pack-de* language-pack-de-base* language-pack-es*
  language-pack-es-base* language-pack-fr* language-pack-fr-base*
  language-pack-gnome-de* language-pack-gnome-de-base* language-pack-gnome-es*
  language-pack-gnome-es-base* language-pack-gnome-fr*
  language-pack-gnome-fr-base* language-pack-gnome-it*
  language-pack-gnome-it-base* language-pack-gnome-pt*
  language-pack-gnome-pt-base* language-pack-gnome-ru*
  language-pack-gnome-ru-base* language-pack-gnome-zh-hans*
  language-pack-gnome-zh-hans-base* language-pack-it* language-pack-it-base*
  language-pack-pt* language-pack-pt-base* language-pack-ru*
  language-pack-ru-base* language-pack-zh-hans* language-pack-zh-hans-base*
0 upgraded, 0 newly installed, 35 to remove and 0 not upgraded.
After this operation, 168 MB disk space will be freed.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 145531 files and directories currently installed.)
Removing firefox-locale-de (56.0+build6-0ubuntu1) ...
Removing firefox-locale-es (56.0+build6-0ubuntu1) ...
Removing firefox-locale-fr (56.0+build6-0ubuntu1) ...
Removing firefox-locale-it (56.0+build6-0ubuntu1) ...
Removing firefox-locale-pt (56.0+build6-0ubuntu1) ...
Removing firefox-locale-ru (56.0+build6-0ubuntu1) ...
Removing firefox-locale-zh-hans (56.0+build6-0ubuntu1) ...
Removing language-pack-gnome-de-base (1:17.10+20171012) ...
Removing language-pack-de-base (1:17.10+20171012) ...
Removing language-pack-gnome-es-base (1:17.10+20171012) ...
Removing language-pack-es-base (1:17.10+20171012) ...
Removing language-pack-gnome-fr-base (1:17.10+20171012) ...
Removing language-pack-fr-base (1:17.10+20171012) ...
Removing language-pack-gnome-it-base (1:17.10+20171012) ...
Removing language-pack-gnome-pt-base (1:17.10+20171012) ...
Removing language-pack-gnome-ru-base (1:17.10+20171012) ...
Removing language-pack-gnome-zh-hans-base (1:17.10+20171012) ...
Removing language-pack-it-base (1:17.10+20171012) ...
Removing language-pack-pt-base (1:17.10+20171012) ...
Removing language-pack-ru-base (1:17.10+20171012) ...
Removing language-pack-zh-hans-base (1:17.10+20171012) ...
Removing language-pack-gnome-de (1:17.10+20171012) ...
Removing language-pack-de (1:17.10+20171012) ...
Removing language-pack-gnome-es (1:17.10+20171012) ...
Removing language-pack-es (1:17.10+20171012) ...
Removing language-pack-gnome-fr (1:17.10+20171012) ...
Removing language-pack-fr (1:17.10+20171012) ...
Removing language-pack-gnome-it (1:17.10+20171012) ...
Removing language-pack-gnome-pt (1:17.10+20171012) ...
Removing language-pack-gnome-ru (1:17.10+20171012) ...
Removing language-pack-gnome-zh-hans (1:17.10+20171012) ...
Removing language-pack-it (1:17.10+20171012) ...
Removing language-pack-pt (1:17.10+20171012) ...
Removing language-pack-ru (1:17.10+20171012) ...
Removing language-pack-zh-hans (1:17.10+20171012) ...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 136471 files and directories currently installed.)
Purging configuration files for language-pack-pt-base (1:17.10+20171012) ...
Purging configuration files for language-pack-gnome-fr-base (1:17.10+20171012) ...
Purging configuration files for language-pack-ru-base (1:17.10+20171012) ...
Purging configuration files for language-pack-gnome-es-base (1:17.10+20171012) ...
Purging configuration files for language-pack-gnome-zh-hans-base (1:17.10+20171012) ...
Purging configuration files for language-pack-es-base (1:17.10+20171012) ...
Purging configuration files for language-pack-gnome-pt-base (1:17.10+20171012) ...
Purging configuration files for language-pack-gnome-de-base (1:17.10+20171012) ...
Purging configuration files for language-pack-zh-hans-base (1:17.10+20171012) ...
Purging configuration files for language-pack-fr-base (1:17.10+20171012) ...
Purging configuration files for language-pack-de-base (1:17.10+20171012) ...
Purging configuration files for language-pack-gnome-ru-base (1:17.10+20171012) ...
Purging configuration files for language-pack-gnome-it-base (1:17.10+20171012) ...
Purging configuration files for language-pack-it-base (1:17.10+20171012) ...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
No protocol specified
Unable to init server: Could not connect: Connection refused

(zenity:1124): Gtk-WARNING **: cannot open display: :0
Script cancelled by user
Restoring kernel update state...
Reactivating initctl...
mv: cannot stat '/sbin/initctl.uck_blocked': No such file or directory
Reactivating update-grub...
Reactivating grub-probe...
Reactivating grub-probe postinst/postrm...
Removing generated machine uuid...
Removing generated fstab/mtab...
Removing crash reports...
Unmounting /home/andrew/tmp/remaster-root/var/cache/apt...
Unmounting /home/andrew/tmp/remaster-root/tmp/customization-scripts...
Unmounting /home/andrew/tmp/remaster-root/tmp...
Unmounting /home/andrew/tmp/remaster-root/sys...
Unmounting /home/andrew/tmp/remaster-root/run...
Unmounting /home/andrew/tmp/remaster-root/root...
Unmounting /home/andrew/tmp/remaster-root/proc...
Unmounting /home/andrew/tmp/remaster-root/dev/pts...
Cleaning up temporary directories...
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Customization Kit Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

If you look at https://launchpad.net/uck you will see

!!!PROJECT DISCONTINUED!!!

I assume that the version of Ubuntu Customization Kit that you try to use does not work with Ubuntu 17.10 (e.g. because of upstart - systemd change).

Whatever you want to do, you most probably have to search for a different solution.

Revision history for this message
Andrew (andrewq512) said :
#2

Hello there and thanks Mr Hampl for call my attention to that address, a lot things have change since the sytemd implementation. And your're right, I have to keep looking for different solution.