Jetson-Deepstream踩坑记录

1 刷机

  1. 报错
File System and OS - target_image: Depends: python2 (= 2.7.16-1) but 2.7.17-2ubuntu4 is to be installed

网上苦寻无果,在chatgpt的帮助下解决
chatgpt回答:
It seems that there is still a version conflict between the Python2 package you are trying to install and the version of Python2 that is currently installed on your system.

One possible solution to this issue is to try explicitly specifying the version numbers for both python2-minimal and libpython2-stdlib packages as follows:

sudo apt-get install python2=2.7.16-1 python2-minimal=2.7.16-1 libpython2-stdlib=2.7.16-1

This command should install the specific version of Python2 and its dependencies that you need.

If this still does not work, you can try using the dpkg command to force install the specific version of python2 as follows:

sudo dpkg -i --force-all /var/cache/apt/archives/python2_2.7.16-1_amd64.deb

This command will try to forcefully install the python2 package even if it conflicts with existing packages or dependencies. However, please note that this should be used with caution as it may cause issues with your system stability.

I hope this helps! Let me know if you have any further questions or concerns.

执行第一个命令之后就ok了

10:00:06 ERROR: File System and OS - target_image: Err:20 https://dl.bintray.com/etcher/debian stable Release
10:00:13 ERROR: File System and OS - target_image: E: The repository 'https://deb.etcher.io stable Release' does not have a Release file.
10:00:18 ERROR: File System and OS - target_image: command terminated with error
10:00:18 SUMMARY: File System and OS - target_image: First Error: Installation failed.

2 常见错误总结

  1. 在尝试从batch中获取frame到CPU时报错
thread *** received signal SIGSEGV, Segmentation fault

底层c指针错误回收/指向错误导致

  • 解决方法:
mem_type = 3 # 0 for jetson

caps = Gst.Caps.from_string("video/x-raw(memory:NVMM), format=RGBA")
nvfilter = Gst.ElementFactory.make("capsfilter", "filter")
nvfilter.set_property("caps", caps)

streammux.set_property("nvbuf-memory-type", mem_type)
nvvideoconvert.set_property("nvbuf-memory-type", mem_type)

在pipeline中加入上述Element之后,再在下游获取frame即可。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值