← Back to issue list

"Writing more data than expected" while snapping an ros project

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1800659
Type
issue
State
open
Author
~ghost069
Labels
ros
Created
Updated
Closed
—

Current evaluation

Snapcraft 2.43.1 aborted a ROS catkin build with apt FetchError 'Writing more data than expected' on libxext-dev; no maintainer triage in ~8 years and the 2.x deb-fetch/catkin code paths no longer exist in the repo.

Suggested action: close stale

Reason: The report is an untriaged 2018 support request (only label 'ros', no maintainer reply, one auto-captured comment) about an apt/mirror-level download mismatch in the pre-refactor Snapcraft 2.x tree. The exact code paths in the traceback are gone from the current repo: 'fetch_binary'/'FetchError' no longer match anything in snapcraft/, snapcraft/internal/repo/_deb.py was renamed to snapcraft_legacy (8cdb15d54), and snapcraft/plugins/catkin.py was relocated out of the core repo in 38996d538 ('plugins: move the existing plugin to a new package', canonical/snapcraft#2984). With Snapcraft 2.43.1 long unsupported and the subsystem retired, nothing actionable remains for this report; the underlying error was almost certainly a corrupt/transient archive download rather than a snapcraft defect.

Evaluated by: mr-cal-bot

Impact: 20 Quick Win: 2 Complexity: 55 Confidence: 58 Actionability: 25

Issue body

I was tring to package and deploy a ROS project as a snap.And it turn out the following error. The project(https://github.com/felixendres/rgbdslam_v2) is working alright on my computer,and what I simply did is "snapcraft init",change the yaml,"snapcraft",strictly folowing this tutorial just with anthor project http://wiki.ros.org/ROS/Tutorials/Packaging%20your%20ROS%20project%20as%20a%20snap and it went wrong... ################################################ Get:1 libxext-dev_1.3.3-1_amd64.deb [82.1 kB] Err libxext-dev_1.3.3-1_amd64.deb Writing more data than expected (82765 > 82090) Fetched 0 B in 0s (0 B/s) Sorry, an error occurred in Snapcraft: Traceback (most recent call last): File "/usr/bin/snapcraft", line 9, in <module> load_entry_point('snapcraft==2.43.1', 'console_scripts', 'snapcraft')() File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1037, in invoke return Command.invoke(self, ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/_runner.py", line 93, in run ctx.forward(lifecyclecli.commands["snap"]) File "/usr/lib/python3/dist-packages/click/core.py", line 552, in forward return self.invoke(cmd, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 136, in snap project = _execute(steps.PRIME, parts=[], **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 35, in _execute lifecycle.execute(step, project_config, parts) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 90, in execute executor.run(step, part_names) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 194, in run self._handle_step(part_names, part, step, current_step, cli_config) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 208, in _handle_step getattr(self, "_run_{}".format(current_step.name))(part) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 250, in _run_pull self._run_step(step=steps.PULL, part=part, progress="Pulling") File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 327, in _run_step getattr(part, step.name)() File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 415, in pull self._runner.pull() File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/_runner.py", line 83, in pull "override-pull", self._override_pull_scriptlet, self._sourcedir File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/_runner.py", line 162, in _run_scriptlet scriptlet_name, function_call.strip() File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/_runner.py", line 218, in _handle_builtin_function function(**function_args) File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 435, in _do_pull self.plugin.pull() File "/usr/lib/python3/dist-packages/snapcraft/plugins/catkin.py", line 451, in pull self._setup_dependencies(rosdep, catkin) File "/usr/lib/python3/dist-packages/snapcraft/plugins/catkin.py", line 472, in _setup_dependencies self._setup_apt_dependencies(system_dependencies.get("apt")) File "/usr/lib/python3/dist-packages/snapcraft/plugins/catkin.py", line 491, in _setup_apt_dependencies ubuntu.get(apt_dependencies) File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/_deb.py", line 389, in get return self._get(apt_cache) File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/_deb.py", line 449, in _get destination=self._cache.packages_dir, File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/_deb.py", line 203, in fetch_binary % (acqfile.destfile, acqfile.error_text) apt.package.FetchError: The item '/home/anthony/.cache/snapcraft/stage-packages/apt/bf2a49c20a5c7071360370a3b84a832fedafb28df2dd2fc98c926383342def2e774c1c1673f4fd62a1aab5abbb005ef3/var/cache/apt/archives/libxext-dev_1.3.3-1_amd64.deb' could not be fetched: Writing more data than expected (82765 > 82090) We would appreciate it if you created a bug report at https://launchpad.net/snapcraft/+filebug with the above text included. ################################################ I would be so grateful if you could help me out.I attached the yaml in case you need it.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 20
Quick Win: 2
Complexity: 55
Confidence: 58
Actionability: 25
close stale Snapcraft 2.43.1 aborted a ROS catkin build with apt FetchError 'Writing more data than expected' on libxext-dev; no maintainer triage in ~8 years and the 2.x deb-fetch/catkin code paths no longer exist in the repo.
stealth/space-bunny-alpha
Impact: 30
Quick Win: 7
Complexity: 55
Confidence: 80
Actionability: 52
needs triage Snapcraft 2.43.1 failed while pulling libxext-dev for a ROS Catkin build because APT received 82,765 bytes instead of 82,090; the cause remains undiagnosed.
stealth/space-bunny-alpha
Impact: 25
Quick Win: 7
Complexity: 35
Confidence: 67
Actionability: 45
needs triage Snapcraft 2.43.1 ROS1/catkin packaging reports an apt FetchError while downloading libxext-dev. No reproducer follow-up or maintainer assessment; current build path is unknown.
stealth/space-bunny-alpha
Impact: 25
Quick Win: 6
Complexity: 45
Confidence: 78
Actionability: 40
needs triage ROS catkin snap build in Snapcraft 2.43.1 fails while downloading libxext-dev with an apt size mismatch; no reproducible environment or maintainer assessment is available.
qwen/qwen3.8-27b
Impact: 10
Quick Win: 8
Staleness: 95
Complexity: 20
Confidence: 75
Support Request: 80
close stale User on snapcraft 2.43.1 hit an apt FetchError ('Writing more data than expected') pulling catkin/ROS deps. No maintainer response in ~8 years; the error is an apt cache/mirror issue and the affected version is long EOL.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 90
Support Request: 50
close stale User reports an apt fetch error when packaging a ROS project with snapcraft. Issue has been inactive for over 7 years with no maintainer response.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 90
Support Request: 75
close stale Report of an apt fetch error during ROS snap packaging with snapcraft v2.43.1. Issue has been inactive for over 7 years with no maintainer response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 10
Confidence: 90
Support Request: 20
close stale Apt package fetch error (size mismatch) encountered while packaging a ROS project as a snap using snapcraft v2.43.1. No maintainer interaction and over 7 years old.

Update history

Date Change
created

Related work

  • Superseded By: canonical/snapcraft#2984 (confidence 60%)

    Commit 38996d538 moved the plugins (including catkin.py, named in the traceback) out of the core snapcraft repo into a separate package.

  • Related To: canonical/snapcraft#2669 (confidence 25%)

    Later catkin-plugin commits (parallel builds, rosdep/base handling) postdate the 2.43.1 behaviour reported here; no commit mentions 'Writing more data than expected'.

Related issues

No related issues found above the similarity threshold.