This blocks release upgrades to Cosmic Cuttlefish. "dpkg --purge --force-all libcuda1-352" does not help, but vmagnin workaround does work.
apt-get upgrade libcuda1-352
...
Preparing to unpack .../libcuda1-352_361.45.11-0ubuntu4_amd64.deb ...
Failed to stop var-lib-snapd-lib-gl.mount: Unit var-lib-snapd-lib-gl.mount not loaded.
dpkg: warning: old libcuda1-352 package pre-removal script subprocess returned error exit status 5
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/apt/archives/libcuda1-352_361.45.11-0ubuntu4_amd64.deb (--unpack):
there is no script in the new version of the package - giving up
Failed to get unit file state for var-lib-snapd-lib-gl.mount: No such file or directory
var-lib-snapd-lib-gl.mount is a disabled or a static unit, not starting it.
Errors were encountered while processing:
/var/cache/apt/archives/libcuda1-352_361.45.11-0ubuntu4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
This blocks release upgrades to Cosmic Cuttlefish. "dpkg --purge --force-all libcuda1-352" does not help, but vmagnin workaround does work.
apt-get upgrade libcuda1-352 352_361. 45.11-0ubuntu4_ amd64.deb ... snapd-lib- gl.mount: Unit var-lib- snapd-lib- gl.mount not loaded. apt/archives/ libcuda1- 352_361. 45.11-0ubuntu4_ amd64.deb (--unpack): snapd-lib- gl.mount: No such file or directory snapd-lib- gl.mount is a disabled or a static unit, not starting it. apt/archives/ libcuda1- 352_361. 45.11-0ubuntu4_ amd64.deb
...
Preparing to unpack .../libcuda1-
Failed to stop var-lib-
dpkg: warning: old libcuda1-352 package pre-removal script subprocess returned error exit status 5
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/
there is no script in the new version of the package - giving up
Failed to get unit file state for var-lib-
var-lib-
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)