No update-notifier in Ubuntu Server

Bug #164915 reported by acacha
6
Affects Status Importance Assigned to Milestone
moodle (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: moodle

Moodle package fails on Ubuntu Server upgrade to Gutsy.

 $ sudo dpkg-reconfigure moodle
 cp: cannot create regular file `/var/lib/update-notifier/user.d/moodle-reconfigure-required': No such file or directory

The problem is at line 242 of file /var/lib/dpkg/info/moodle.postinst

 if test -d $uund; then
     cp -f /usr/share/moodle/moodle-reconfigure-required.update-notifier \
           /var/lib/update-notifier/user.d/moodle-reconfigure-required
 fi

The problem was that the update-notifier not exists at Ubuntu Server version.

Daniel T Chen (crimsun)
Changed in moodle:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Savvas Radevic (medigeek) wrote :

Hi, do you mean there is no directory named /var/lib/update-notifier/ ?

Revision history for this message
Savvas Radevic (medigeek) wrote :

Ah ok I get it, "Puts an icon in the user's notification area when package updates are available."
I'll check the source

Revision history for this message
Savvas Radevic (medigeek) wrote :

debian/postinst checks if the folder is available, then tries to install the file:

unud=/var/lib/update-notifier/user.d
if test -d $uund; then
    cp -f /usr/share/moodle/moodle-reconfigure-required.update-notifier \
          /var/lib/update-notifier/user.d/moodle-reconfigure-required
fi

Code exists in both versions:
moodle_1.8.2-1ubuntu2.1 (gutsy)
moodle_1.8.2-1.2ubuntu2 (jaunty alpha)

If you still get this error, please set the bug status to "New" and post the full output of the dpkg-reconfigure command. :)

Changed in moodle:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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