Synaptic Gtk error

Bug #228235 reported by Narcis Garcia
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ubuntu Customization Kit
Fix Released
Wishlist
Unassigned
uck (Ubuntu)
Fix Released
Wishlist
Alessio Treglia

Bug Description

Using UCK 2.0.3 on Ubuntu GNU/Linux 8.04 (Hardy Heron) 64 bits.

Selected "ca" language for all, and an Ubuntu 8.04 i386 desktop ISO to work.
Opened Synaptic with the GUI, selected all the repositories, reloaded repositories, and selected partimage + samba + smbfs to install.
When press the [Apply] button, shows the respective dialog and remains for ever with the message "Preparing packages...".

I attach the build.log file.

Related branches

Revision history for this message
Narcis Garcia (narcisgarcia) wrote :
Revision history for this message
Krzysztof Lichota (krzysiek-launchpad-ubuntu-com) wrote : Re: [Bug 228235] Re: Synaptic Gtk error

Seems this is the problem:
"sh: cannot create /dev/null: Permission denied"
But I don't know where it comes from.
Are you running uck with sudo?

Fabrizio, do you have any idea?

Revision history for this message
Narcis Garcia (narcisgarcia) wrote :

No, I'm running UCK opening the Applications menu entry.
(But the terminal asks me for sudo password and I give)

Revision history for this message
Fabrizio Balliano (fabrizio-balliano) wrote :

i can't find the partimage package but all the other things are working fine to me, synaptic is perfetly installing packages.

anyway the samba package hangs during installation because the postinst operations start the daemon and (within the chroot environment) this should be avoided, but actually i think we can't tell apt not to start daemons after installing packages...

Revision history for this message
Narcis Garcia (narcisgarcia) wrote :

Can these problems be related to the diference between i386 ISO and AMD64 system environment?

Revision history for this message
Peter Wainwright (prw) wrote :

I don't think this is caused by an arch mismatch.

I have tried both in my native x86_64 installation and on an i386 installation. The former was 8.04 with all apt-get upgrades applied. The latter was a USB stick prepared by unetbootin with 8.04.1, and I symlinked /home/ubuntu/tmp to a directory of adequate size on my hard disk. In both cases, the symptoms were identical:

Cannot create /dev/null
Synaptic hangs

Also, I cannot execute a console command: An xterm(?) pops up but is then covered by a dialog: "There was an error creating the child process for this terminal". Which sounds like it may be due to the absence of /dev/null.

Revision history for this message
Peter Wainwright (prw) wrote :

For some reason, the partition in which my "tmp" directory was located was mounted with options "nodev,nosuid" (presumably some default security policy is operating here). Obviously we need to make sure ~/tmp is on a filesystem with "dev,suid,exec" flags otherwise we don't have a proper chroot environment.

Having remounted with these flags, things indeed work as expected.

Changed in uck:
importance: Undecided → Wishlist
Revision history for this message
Fabrizio Balliano (fabrizio-balliano) wrote :

splash uck-gui notes were updated with a few info about this

Changed in uck:
status: New → Fix Released
status: Fix Released → Fix Committed
Revision history for this message
Fabrizio Balliano (fabrizio-balliano) wrote :

released in 2.0.12

Changed in uck:
status: Fix Committed → Fix Released
Changed in uck (Ubuntu):
importance: Undecided → Wishlist
assignee: nobody → Alessio Treglia (quadrispro)
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package uck - 2.0.12-0ubuntu1

---------------
uck (2.0.12-0ubuntu1) lucid; urgency=low

  * New upstream release:
    - GUI:
      + splash notes were updated
      + a new configuration screen was added to allow selecting which
        languages will be available on the livecd boot splash (gfxboot).
        This was necessary because the language packs codes do not match
        gfxbook locales.
    - the default gfxboot language can be chosen only between the
      gfxboot available languages (easier selection).
    - default gfxboot language selection was made mandatory
    - Backend:
      + a workaround for the chrooted gnome-terminal was implemented
  * Fixes:
    - LP: #269741
    - LP: #228235
    - LP: #407443
 -- Alessio Treglia <email address hidden> Fri, 22 Jan 2010 18:45:17 +0100

Changed in uck (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Artem Sagajda (asagajda) wrote :

I writing post below to clarify, how to "make sure ~/tmp is on a filesystem with "dev,suid,exec""

When you start uck there's workaround mentioned on welcome screen:
...
Requirements:
1. about 5 GB of free disk space in /home/artem/tmp
   (on local machine and mounted with "dev,suid,exec" options)
...
so it's crucial to remount filesystem where ~/tmp folder resides with "dev,suid,exec" options
(in my case it's a filesystem on a separate partition with mount point /home, maybe you have /home inside root filesystem)

you can do it this way:

sudo mount -o remount,dev,suid,exec /home

or if you have not separate partition for /home:

sudo mount -o remount,dev,suid,exec /

Then try "Run console application" one more time.

Revision history for this message
Narcis Garcia (narcisgarcia) wrote :

Thanks for completing information.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.