package snapcraft (not installed) failed to install/upgrade: new snapcraft package pre-installation script subprocess returned error exit status 1

Bug #2024307 reported by Frank Daniel
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
snapcraft (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This is the output from attempting to install snapcraft
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
=========================================================================================================

sudo apt install snapcraft
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  snapcraft
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 6,356 B of archives.
After this operation, 55.3 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu lunar/universe amd64 snapcraft all 3.0ubuntu2 [6,356 B]
Fetched 6,356 B in 0s (29.9 kB/s)
Preconfiguring packages ...
Selecting previously unselected package snapcraft.
(Reading database ... 217732 files and directories currently installed.)
Preparing to unpack .../snapcraft_3.0ubuntu2_all.deb ...
=> Installing the Snapcraft snap
==> Checking connectivity with the snap store
==> Installing the Snapcraft snap for ubuntu-23.04
error: requested a non-existing branch on latest/stable for snap "snapcraft":
       ubuntu-23.04
dpkg: error processing archive /var/cache/apt/archives/snapcraft_3.0ubuntu2_all.
deb (--unpack):
 new snapcraft package pre-installation script subprocess returned error exit st
atus 1
Errors were encountered while processing:
 /var/cache/apt/archives/snapcraft_3.0ubuntu2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 23.04
Package: snapcraft (not installed)
ProcVersionSignature: Ubuntu 6.2.0-23.23-generic 6.2.12
Uname: Linux 6.2.0-23-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.26.1-0ubuntu2
AptOrdering:
 snapcraft:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: pass
Date: Sat Jun 17 21:47:01 2023
ErrorMessage: new snapcraft package pre-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2023-04-28 (50 days ago)
InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020)
Python3Details: /usr/bin/python3.11, Python 3.11.2, python3-minimal, 3.11.2-1
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.21ubuntu1
 apt 2.6.0
SourcePackage: snapcraft
Title: package snapcraft (not installed) failed to install/upgrade: new snapcraft package pre-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Frank Daniel (fdan52) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapcraft (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.