← Back to issue list

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

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1800659
Type
issue
State
open
Author
~ghost069
Labels
ros
Created
2018-10-30 13:38:31.836138+00:00
Updated
2018-11-05 13:13:39.351269+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

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

No evaluation history available.