** Description changed:

+ [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
+ 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
+  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)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to