← 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

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.

Suggested action: close stale

Reason: The issue is ~8 years old with 0 comments and no maintainer interaction, and reports an apt-level FetchError ('Writing more data than expected') on snapcraft 2.43.1 — a transient apt cache/mirror problem surfaced by snapcraft, not a snapcraft defect. The affected 2.x version and the catkin plugin code paths in the traceback (snapcraft/plugins/catkin.py, snapcraft/internal/repo/_deb.py) no longer exist in modern snapcraft, so it is no longer applicable.

Impact: 10 Quick Win: 8.0 Staleness: 95 Complexity: 20 Confidence: 75 Support Request: 80

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
qwen/qwen3.8-27b
Impact: 10
Quick Win: 8.0
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.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 15
Confidence: 92
Support Request: 25
close stale Report of an apt package fetch error during snapcraft build of a ROS 1 project using an outdated snapcraft version. Issue is inactive and likely irrelevant due to significant toolchain and ROS version changes.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.