"apt finished with non-zero exit value 127"报错的解决方案

本文介绍了解决在GitHub项目okhttputils中遇到的构建错误的方法。通过安装lib32z1库并更新SDK,成功解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在运行github 上关于okhttputils 的出现该错误,通过clean, rebuild操作无法解决该问题。

sudo apt-get install lib32z1

安装lib32z1之后,并更新sdk解决该问题

Starting >>> my_robot_zs Traceback (most recent call last): - 0.1s] File "<string>", line 1, in <module> File "/usr/lib/python3.8/distutils/core.py", line 215, in run_setup exec(f.read(), g) File "<string>", line 25 )entry_points={ ^ SyntaxError: invalid syntax --- stderr: my_robot_zs Traceback (most recent call last): File "/usr/lib/python3/dist-packages/colcon_core/executor/__init__.py", line 91, in __call__ rc = await self.task(*args, **kwargs) File "/usr/lib/python3/dist-packages/colcon_core/task/__init__.py", line 93, in __call__ return await task_method(*args, **kwargs) File "/usr/lib/python3/dist-packages/colcon_ros/task/ament_python/build.py", line 51, in build setup_py_data = get_setup_data(self.context.pkg, env) File "/usr/lib/python3/dist-packages/colcon_core/task/python/__init__.py", line 20, in get_setup_data return dict(pkg.metadata[key](env)) File "/usr/lib/python3/dist-packages/colcon_ros/package_augmentation/ros_ament_python.py", line 57, in getter return get_setup_information( File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 249, in get_setup_information _setup_information_cache[hashable_env] = _get_setup_information( File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 296, in _get_setup_information result = subprocess.run( File "/usr/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', 'import sys;from contextlib import suppress;exec("with suppress(ImportError): from setuptools.extern.packaging.specifiers import SpecifierSet");exec("with suppress(ImportError): from packaging.specifiers import SpecifierSet");from distutils.core import run_setup;dist = run_setup( \'setup.py\', script_args=(\'--dry-run\',), stop_after=\'config\');skip_keys = (\'cmdclass\', \'distclass\', \'ext_modules\', \'metadata\');data = { key: value for key, value in dist.__dict__.items() if ( not key.startswith(\'_\') and not callable(value) and key not in skip_keys and key not in dist.display_option_names )};data[\'metadata\'] = { k: v for k, v in dist.metadata.__dict__.items() if k not in (\'license_files\', \'provides_extras\')};sys.stdout.buffer.write(repr(data).encode(\'utf-8\'))']' returned non-zero exit status 1. --- Failed <<< my_robot_zs [0.21s, exited with code 1] Summary: 0 packages finished [0.38s] 1 package failed: my_robot_zs 1 package had stderr output: my_robot_zs Command '['/usr/bin/python3', '-c', 'import sys;from contextlib import suppress;exec("with suppress(ImportError): from setuptools.extern.packaging.specifiers import SpecifierSet");exec("with suppress(ImportError): from packaging.specifiers import SpecifierSet");from distutils.core import run_setup;dist = run_setup( \'setup.py\', script_args=(\'--dry-run\',), stop_after=\'config\');skip_keys = (\'cmdclass\', \'distclass\', \'ext_modules\', \'metadata\');data = { key: value for key, value in dist.__dict__.items() if ( not key.startswith(\'_\') and not callable(value) and key not in skip_keys and key not in dist.display_option_names )};data[\'metadata\'] = { k: v for k, v in dist.metadata.__dict__.items() if k not in (\'license_files\', \'provides_extras\')};sys.stdout.buffer.write(repr(data).encode(\'utf-8\'))']' returned non-zero exit status 1. 报错
最新发布
06-11
R版本没问题,是最新的,但是仍然报错如下:> warnings() Warning messages: 1: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘proxy’ had non-zero exit status 2: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘checkmate’ had non-zero exit status 3: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘KernSmooth’ had non-zero exit status 4: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘wk’ had non-zero exit status 5: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘farver’ had non-zero exit status 6: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘lattice’ had non-zero exit status 7: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘cluster’ had non-zero exit status 8: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘nnet’ had non-zero exit status 9: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘foreign’ had non-zero exit status 10: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘data.table’ had non-zero exit status 11: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘colorspace’ had non-zero exit status 12: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘mvtnorm’ had non-zero exit status 13: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘SparseM’ had non-zero exit status 14: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘units’ had non-zero exit status 15: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘isoband’ had non-zero exit status 16: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘MASS’ had non-zero exit status 17: In install.packages("ggplot2", dependencies = TRUE) :
03-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值