Bug 36874

Summary: Appliance mode shows error message "no such package"
Product: UCS Reporter: Erik Damrose <damrose>
Component: System setupAssignee: Erik Damrose <damrose>
Status: CLOSED FIXED QA Contact: Stefan Gohmann <gohmann>
Severity: normal    
Priority: P5 CC: gohmann, jmm, klaeser
Version: UCS 4.0   
Target Milestone: UCS 4.0-0-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Attachments: Screenshot of error page with "no such package" message
/var/log/univention/setup.log (as excerpt)
move package removal
fix package removal

Description Erik Damrose univentionstaff 2014-11-19 13:49:26 CET
When trying to install a basesystem in appliancemode, the setup fails with the following error:

univention-pam: No such package
univention-management-console: No such package
Comment 1 Erik Damrose univentionstaff 2014-11-19 13:51:58 CET
I can click on 'Finish' to end the installation progress and have a seemingly working basesystem.
Comment 2 Alexander Kläser univentionstaff 2014-11-19 14:39:26 CET
Created attachment 6429 [details]
Screenshot of error page with "no such package" message

A similar problem occurs when installing a DC Backup system. I selected a few components: DHCP server, mail server, print server, nagios server.
Comment 3 Alexander Kläser univentionstaff 2014-11-19 14:46:45 CET
Here is the corresponding part from setup.log:

=== 50_software/10software (2014-11-19 06:29:29) ===
__NAME__:50_software/10software Configuring software components
__STEPS__:600
__MSG__:Fetched 0 B in 0s (0 B/s)
__STEP__:0
__STEP__:0
__ERR__:univention-dhcp: No such package
__MSG__:Fetched 0 B in 0s (0 B/s)
__STEP__:0
__ERR__:univention-mail-server: No such package
__MSG__:Fetched 0 B in 0s (0 B/s)
__STEP__:0
__ERR__:univention-printserver: No such package
__MSG__:Fetched 0 B in 0s (0 B/s)
__STEP__:0
__ERR__:univention-nagios-server: No such package
__MSG__:Fetched 0 B in 0s (0 B/s)
__STEP__:0

The problem seems that UCS4 has not been released yet, as apt tries to get the software components from updates.software-univention.de.
Comment 4 Alexander Kläser univentionstaff 2014-11-19 14:59:12 CET
Created attachment 6430 [details]
/var/log/univention/setup.log (as excerpt)

(In reply to Alexander Kläser from comment #3)
> ...
> The problem seems that UCS4 has not been released yet, as apt tries to get
> the software components from updates.software-univention.de.

univention-system-setup-boot is deinstalled during execution of 05_role/10role.
Comment 5 Alexander Kläser univentionstaff 2014-11-19 15:00:18 CET
(In reply to Alexander Kläser from comment #3)
> ...
> The problem seems that UCS4 has not been released yet, as apt tries to get
> the software components from updates.software-univention.de.

Correction, the sources should be available offline.
Comment 6 Erik Damrose univentionstaff 2014-11-19 15:04:49 CET
Package: univention-system-setup-boot Conflicts: univention-system-setup-appliance, univention-server-backup, univention-server-slave, univention-server-member, univention-basesystem

So u-s-s-boot get uninstalled too early and deletes the package cache in its postinst
Comment 7 Erik Damrose univentionstaff 2014-11-19 15:05:37 CET
> postinst

postrm
Comment 8 Erik Damrose univentionstaff 2014-11-19 17:15:09 CET
Created attachment 6434 [details]
move package removal

Fixed in the vmware images, patch attached
Comment 9 Erik Damrose univentionstaff 2014-11-20 14:56:29 CET
Created attachment 6454 [details]
fix package removal

improved patch:
- fix package removal
- move appliance-hooks.d to univention-system-setup; otherwise all hooks from the package will not be executed on non-master systems
- remove forced install-time ucrV update/available
Comment 10 Erik Damrose univentionstaff 2014-11-21 16:31:11 CET
r56057 Patch applied and package rebuild in errata scope
univention-system-setup 8.1.63-5.784.201411211621
2014-11-21-univention-system-setup.yaml
Comment 11 Stefan Gohmann univentionstaff 2014-11-28 08:07:11 CET
The package remove doesn't work:

root@ucs-6682:~# dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time.  The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 apache2-mpm-prefork  Apache HTTP Server - traditional non-threaded model

The following packages have been triggered, but the trigger processing
has not yet been done.  Trigger processing can be requested using
dselect or dpkg --configure --pending (or dpkg --triggers-only):
 python-support       automated rebuilding support for Python modules
 univention-config    UCS - configuration manager

root@ucs-6682:~#

Several UMC packages are still installed:

root@ucs-6682:~# dpkg -l | grep -i management-console
ii  python-univention-management-console           7.1.63-2.837.201411201850                    all          UCS Management Console - Python Modules
rc  univention-management-console-frontend         4.1.105-1.964.201411271447                   all          UCS Management Console - Web based computer administration tool
ii  univention-management-console-frontend-theme   0.0.88-1.64.201411271443                     all          Univention Management Console - theme data
ii  univention-management-console-module-appcenter 4.1.19-3.304.201411261055                    all          UMC module for software management
ii  univention-management-console-module-lib       4.0.2-1.29.201411101642                      all          Module lib containing low-lewel commands to control the UMC server
ii  univention-management-console-server           7.1.63-2.837.201411201850                    all          UCS Management Console - server
rc  univention-management-console-web-server       4.1.105-1.964.201411271447                   all          UCS Management Console - Web server
root@ucs-6682:~#


From the log file:
= Running 97_remove_univention_system_setup_boot_basesystem
Paketlisten werden gelesen...
Abh<C3><A4>ngigkeitsbaum wird aufgebaut....
Statusinformationen werden eingelesen....
Lesen der erweiterten Statusinformationen...
Initialisieren des Paketstatus'...
Schreiben der erweiterten Statusinformationen...
Lesen der Task-Beschreibungen...
Die folgenden Pakete werden ENTFERNT:
  apache2-mpm-prefork{u} apache2-utils{u} apache2.2-bin{u}
  apache2.2-common{u} javascript-common{u} libapache2-mod-auth-pam{u}
  libapache2-mod-php5{u} libapr1{u} libaprutil1{u}
  libaprutil1-dbd-sqlite3{u} libaprutil1-ldap{u} libdb3{u} libjs-jquery{u}
  libonig2{u} libqdbm14{u} libxslt1.1{u} php5{u} php5-cli{u} php5-common{u}
  python-cherrypy3{u} python-dnspython{u} python-lxml{u} python-psutil{u}
  python-simplejson{u} runit{u} univention-apache{u}
  univention-directory-listener{u} univention-ipcalc{u}
  univention-management-console-frontend{u}
  univention-management-console-frontend-theme{u}
  univention-management-console-module-appcenter{u}
  univention-management-console-module-lib{u}
  univention-management-console-module-setup{u}
  univention-management-console-web-server{u} univention-runit{u}
  univention-ssl{u} univention-system-setup{u} wwwconfig-common{u}
0 Pakete aktualisiert, 0 zus<C3><A4>tzlich installiert, 38 werden entfernt und 0 nicht aktualisiert.
0 B an Archiven m<C3><BC>ssen heruntergeladen werden. Nach dem Entpacken werden 143 MB frei werden.
Schreiben der erweiterten Statusinformationen...
(Lese Datenbank ... 58889 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von univention-management-console-module-setup ...
invoke-rc.d: policy-rc.d denied execution of reload.
Entfernen von univention-management-console-web-server ...
invoke-rc.d: policy-rc.d denied execution of stop.
Entfernen von univention-management-console-frontend ...
Entfernen von univention-apache ...
Entfernen von php5 ...
Entfernen von libapache2-mod-php5 ...
Module php5 disabled.
To activate the new configuration, you need to run:
  service apache2 restart
Entfernen von apache2-mpm-prefork ...
Stopping web server: apache2
The apache2 configtest failed, so we are trying to kill it manually. This is almost certainly suboptimal, so please make sure your system is working as you'd expect now! ... (warning).
 ... waiting .
Comment 12 Erik Damrose univentionstaff 2014-12-01 12:25:42 CET
In which scenario did you encounter the error? Do you still have the machine?

I could not reproduce the error on a
- basesystem with and without internet access
- master
Comment 13 Stefan Gohmann univentionstaff 2014-12-01 13:51:20 CET
(In reply to Erik Damrose from comment #12)
> In which scenario did you encounter the error? Do you still have the machine?

No, but I was able to install a new basesystem with the same error:
 10.201.61.1

> I could not reproduce the error on a
> - basesystem with and without internet access
> - master

Install a base system via DVD.
Comment 14 Erik Damrose univentionstaff 2014-12-03 12:50:51 CET
r56411 Fixed package removal for basesystems
r56412 yaml
Comment 15 Stefan Gohmann univentionstaff 2014-12-03 17:04:11 CET
OK, tests were successful.
Comment 16 Moritz Muehlenhoff univentionstaff 2014-12-04 12:22:11 CET
http://errata.univention.de/ucs/4.0/2.html