← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1733878] Re: package google-compute-engine-oslogin 20170718-0ubuntu1~16.04.0 failed to install/upgrade: there is no script in the new version of the package - giving up

 

This bug was fixed in the package gce-compute-image-packages -
20171129+dfsg1-0ubuntu1~17.04.0

---------------
gce-compute-image-packages (20171129+dfsg1-0ubuntu1~17.04.0) zesty; urgency=medium

  [ Balint Reczey ]
  * Add minimal debian/google-compute-engine-oslogin.prerm to fix upgrades
    (LP: #1733878)
  * New upstream version 20171129+dfsg1
    - Generate SSH host keys when none are present.
    - Improve logging when activating OS Login.
    - Fix parsing logic for expiration time on SSH public keys.
    - Fix home directory creation PAM config.
  * Update symlink to shared library with updated revision
  * Use -I/usr/include/json-c for building tests
  * Backport to Zesty (LP: #1735793)

  [ Ludovic Gasc ]
  * Add systemd as valid ntp daemon

 -- Balint Reczey <rbalint@xxxxxxxxxx>  Tue, 05 Dec 2017 14:06:17 +0100

** Changed in: gce-compute-image-packages (Ubuntu Zesty)
       Status: Fix Committed => Fix Released

** Changed in: gce-compute-image-packages (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1733878

Title:
  package google-compute-engine-oslogin 20170718-0ubuntu1~16.04.0 failed
  to install/upgrade: there is no script in the new version of the
  package - giving up

Status in gce-compute-image-packages package in Ubuntu:
  Fix Released
Status in gce-compute-image-packages source package in Trusty:
  Fix Released
Status in gce-compute-image-packages source package in Xenial:
  Fix Released
Status in gce-compute-image-packages source package in Zesty:
  Fix Released
Status in gce-compute-image-packages source package in Artful:
  Fix Released

Bug description:
  [Impact]

  * The bug make dpkg fail to remove/upgrade the 20170718-0ubuntu1* versions of the package with the following error when openssh-server is not installed:
  ...
  Selecting previously unselected package google-compute-engine-oslogin.
  Preparing to unpack .../google-compute-engine-oslogin_20171025+dfsg1-0ubuntu1~16.04.0_amd64.deb ...
  Deactivating Google Compute Engine OS Login.
  cp: cannot stat '/etc/ssh/sshd_config': No such file or directory
  ...
  dpkg: warning: subprocess old pre-removal script returned error exit status 1
  dpkg: trying script from the new package instead ...
  dpkg: error processing archive /var/cache/apt/archives/google-compute-engine-oslogin_20171025+dfsg1-0ubuntu1~16.04.0_amd64.deb (--unpack):
   there is no script in the new version of the package - giving up
  ...

  * This problem may interrupt upgrading other packages as well hence fixing it in stable releases as well is justified.
  * The fix is adding an always succeeding prerm script which dpkg can fall back to.

  [Test Case]

  1. Install openssh-server and ensure ssh server is started
  2. Install google-compute-engine-oslogin 20170718-0ubuntu1~16.04.0 or 20170718-0ubuntu1~* targeting the tested release
  3. Purge openssh-server
  4. Run apt-get dselect-upgrade to trigger upgrade of google-compute-engine-oslogin
  4.a. Upgrading to an unfixed version will fail with the errors reported in this bug
  4.b. Upgrading to a fixed version succeeds.

  [Regression Potential]

  * The added prerm may let package upgrades succeed which were broken for other reasons but the way around that would be adding code which would check for exactly this breakage and this seems to be overkill.
  * It seems to be highly unlikely to cause other regressions.

  [Original Bug Report Text]

  It's taking more than normal time period while booting.

  ProblemType: Package
  DistroRelease: Ubuntu 16.04
  Package: google-compute-engine-oslogin 20170718-0ubuntu1~16.04.0
  ProcVersionSignature: Ubuntu 4.10.0-38.42~16.04.1-generic 4.10.17
  Uname: Linux 4.10.0-38-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.10
  Architecture: amd64
  Date: Mon Nov 20 08:25:50 2017
  ErrorMessage: there is no script in the new version of the package - giving up
  InstallationDate: Installed on 2017-06-11 (164 days ago)
  InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
  RelatedPackageVersions:
   dpkg 1.18.4ubuntu1.2
   apt  1.2.24
  SourcePackage: gce-compute-image-packages
  Title: package google-compute-engine-oslogin 20170718-0ubuntu1~16.04.0 failed to install/upgrade: there is no script in the new version of the package - giving up
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gce-compute-image-packages/+bug/1733878/+subscriptions