UCK Failed to copy resolv.conf, error=1

Asked by Naufal Fachrian

I use Kubuntu 12.04 x86_64 and try to customize the ISO which downloaded via Kubuntu official website.

UCK say failed to copy resolv.conf (/etc/resolv.conf) and exited with error = 1

Here's Konsole (terminal) output :

Preparing build environment...
Creating X authentication cookie...
Running build process...
Build (/usr/bin/uck-gui --wait-before-exit) started at 2012-04-29 10:23:20
[sudo] password for naufal:
>> Ubuntu Customization Kit 2.4.5 on Ubuntu 12.04, 3.2.0-24-generic x86_64
Starting CD remastering on Min Apr 29 10:23:25 WIT 2012
Customization dir=/home/naufal/tmp/customization-scripts
Mounting ISO image...
mount: warning: /home/naufal/tmp/remaster-iso-mount seems to be mounted read-only.
Unpacking ISO image...
Unmounting ISO image...
Mounting SquashFS image...
mount: warning: /home/naufal/tmp/remaster-root-mount seems to be mounted read-only.
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/naufal/tmp/remaster-root-home
Mounting /home/naufal/tmp/remaster-apt-cache
Mounting /run
Mounting /home/naufal/tmp/customization-scripts
Copying resolv.conf...
cp: `/etc/resolv.conf' and `/home/naufal/tmp/remaster-root/etc/resolv.conf' are the same file
Unmounting /home/naufal/tmp/remaster-root/var/cache/apt...
Unmounting /home/naufal/tmp/remaster-root/tmp/customization-scripts...
Unmounting /home/naufal/tmp/remaster-root/tmp...
Unmounting /home/naufal/tmp/remaster-root/sys...
Unmounting /home/naufal/tmp/remaster-root/run...
Unmounting /home/naufal/tmp/remaster-root/root...
Unmounting /home/naufal/tmp/remaster-root/proc...
Unmounting /home/naufal/tmp/remaster-root/dev/pts...
Failed to copy resolv.conf, error=1
kdialog(14250)/kdeui (KNotification) KNotification::slotReceivedIdError: Error while contacting notify daemon "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."

Question information

Revision history for this message
Lars Westergren (lars-tierp) said :
#1

There seem like etc/resolv.conf is only a link to ../run/resolvconf/resolv.conf
So there is no resolv.conf where the scripts expects to find it.
I used a crude workaround, renamed the link in /etc to resolv.conf.bad and made a new resolv.conf with the same content as the original had. Worked like a charm.

Revision history for this message
Vasily A. Klimov (wolf-stinger) said :
#2

#vi /usr/lib/uck/remaster-live-cd.sh

go to string 358 ( on vi editor just print :set number and press enter)

and change

358 cp -d /etc/resolv.conf "$REMASTER_DIR/etc/resolv.conf" ||
359 failure "Failed to copy resolv.conf, error=$?"

Revision history for this message
MAALEL Imen (maalelimen) said :
#3

i have the same problem but i didnt understand the answer of Lars Westergren (lars-tierp)

and i have try to change the line 358 of the file /usr/lib/uck/remaster-live-cd.sh but no result

i m using edubuntu 12.04 amd64 and i m trying to costomize the same edition (edubuntu12.04-amd64.iso)

plz help me it is a big problem if i can t fixe that error plz

Revision history for this message
Fabrizio Balliano (fabrizio-balliano) said :
#4

2.4.7svn should work for you

Revision history for this message
somesh mahanty (somesh-mahanty) said :
#5

I too have the same problem, but in my case UCK hangs at

Mounting SquashFS image...
mount: warning: /home/santu/tmp/remaster-root-mount seems to be mounted read-only.

Using ubuntu 12.04.1, 32 bit intel processor

Can you help with this problem?

Provide an answer of your own, or ask Naufal Fachrian for more information if necessary.

To post a message you must log in.