Thank you for taking this bug on. If it was just a case of the snap
taking a long time it would be tolerable, but in some scenarios it just
hangs with the snap partially installed. This means the application
isn't installed, and now installing it isn't possible without resetting
snap to a consistent state.

So to answer your question of what a good user experience would be:

1. Ideally, the snap would just install regardless of whether apt or
snap initiated it. If I do `snap install chromium-browser` it works, but
`apt install chromium-browser` is hit and miss and takes considerably
longer to the point of timing out after 20 minutes. It's unclear why
this is so different when it appears that apt is just calling the snap
installation?

2. If the apt installation of chromium-browser fails, it should do so in
a way that the system doesn't now believe that it is installed, even
though the snap isn't available to run. As a result, the user could
simply try the installation again with the hope it succeeds the next
time, without needing to figure out how to get their system back into a
state where the installation can be reattempted.

I haven't tested the proposed solution, but if it works then I feel
giving the user prompts to deal with the issue appropriately is helpful,
but really is just a workaround. Ideally users shouldn't need to take
the steps mentioned and the package should handle it's own failure
scenarios appropriately.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to chromium-browser in Ubuntu.
https://bugs.launchpad.net/bugs/1886414

Title:
  the chromium snap takes a long time to install without visible user
  feedback, seems stuck

Status in chromium-browser package in Ubuntu:
  In Progress

Bug description:
  after an initial attemp to install where the progress got stuck at
  20%, i rebooted as there were a bunch of other system updates that had
  been applied after a fresh isntall.

  Now chromium wont install

  dantheperson@danski:~$ sudo apt install chromium-browser
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  The following packages will be upgraded:
    chromium-browser
  1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  1 not fully installed or removed.
  Need to get 48.4 kB of archives.
  After this operation, 164 kB of additional disk space will be used.
  Get:1 http://nz.archive.ubuntu.com/ubuntu focal-updates/universe amd64 
chromium-browser amd64 81.0.4044.129-0ubuntu0.20.04.1 [48.4 kB]
  Fetched 48.4 kB in 0s (1,527 kB/s)          
  Preconfiguring packages ...
  (Reading database ... 185728 files and directories currently installed.)
  Preparing to unpack 
.../chromium-browser_81.0.4044.129-0ubuntu0.20.04.1_amd64.deb ...
  => Installing the chromium snap
  ==> Checking connectivity with the snap store
  ==> Installing the chromium snap
  error: snap "chromium" has "install-snap" change in progress
  dpkg: error processing archive 
/var/cache/apt/archives/chromium-browser_81.0.4044.129-0ubuntu0.20.04.1_amd64.deb
 (--unpack):
   new chromium-browser package pre-installation script subprocess returned 
error exit status 10
  Errors were encountered while processing:
   
/var/cache/apt/archives/chromium-browser_81.0.4044.129-0ubuntu0.20.04.1_amd64.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  ProblemType: Package
  DistroRelease: Ubuntu 20.04
  Package: chromium-browser 81.0.4044.129-0ubuntu0.20.04.1
  ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
  Uname: Linux 5.4.0-40-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.3
  AptOrdering:
   chromium-browser:amd64: Install
   NULL: ConfigurePending
  Architecture: amd64
  CasperMD5CheckResult: skip
  Date: Mon Jul  6 23:39:11 2020
  Dependencies:
   
  ErrorMessage: new chromium-browser package pre-installation script subprocess 
returned error exit status 10
  InstallationDate: Installed on 2020-07-06 (0 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 
3.8.2-0ubuntu2
  PythonDetails: N/A
  RelatedPackageVersions:
   dpkg 1.19.7ubuntu3
   apt  2.0.2ubuntu0.1
  SourcePackage: chromium-browser
  Title: package chromium-browser 81.0.4044.129-0ubuntu0.20.04.1 failed to 
install/upgrade: new chromium-browser package pre-installation script 
subprocess returned error exit status 10
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1886414/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to