dpkg: error libpostproc-dev

ubuntu 在安装软件的时候报如下的错
dpkg: error processing archive /var/cache/apt/archives/libpostproc-dev_7%3a4.2.7-0ubuntu0.1_arm64.deb (–unpack):
解决方法如下

1. 重装libpostproc-dev

sudo apt clean
sudo apt update
sudo apt install --reinstall libpostproc-dev=7:4.2.7-0ubuntu0.1

如果还报错执行如下

2. 彻底删除重装

sudo dpkg --remove --force-remove-reinstreq libpostproc-dev
sudo apt install libpostproc-dev=7:4.2.7-0ubuntu0.1
</
(base) unitree@ubuntu:~$ sudo apt-get install ffmpeg Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apt-clone archdetect-deb bogl-bterm busybox-static cryptsetup-bin dctrl-tools dpkg-repack gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common libavresample-dev libavresample4 libdc1394-22-dev libdebian-installer4 libexif-dev libgdcm-dev libgphoto2-dev libgtsam4 libilmbase-dev libmetis-dev libmetis5 libopencv4.2-java libopencv4.2-jni libopenexr-dev libraw1394-dev libtimezonemap-data libtimezonemap1 os-prober python3-icu python3-pam rdate tasksel tasksel-data Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: ffmpeg 0 upgraded, 1 newly installed, 0 to remove and 156 not upgraded. 1 not fully installed or removed. Need to get 0 B/14.3 MB of archives. After this operation, 52.4 MB of additional disk space will be used. debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 264161 files and directories currently installed.) Preparing to unpack .../ffmpeg_7%3a4.2.7-nvidia_arm64.deb ... Unpacking ffmpeg (7:4.2.7-nvidia) ... Replacing files in old package libavcodec-dev:arm64 (7:4.2.7-0ubuntu0.1) ... Replacing files in old package libavdevice-dev:arm64 (7:4.2.7-0ubuntu0.1) ... Replacing files in old package libavfilter-dev:arm64 (7:4.2.7-0ubuntu0.1) ... Replacing files in old package libavformat-dev:arm64 (7:4.2.7-0ubuntu0.1) ... Replacing files in old package libavresample-dev:arm64 (7:4.2.7-0ubuntu0.1) ... Replacing files in old package libavutil-dev:arm64 (7:4.2.7-0ubuntu0.1) ... dpkg: error processing archive /var/cache/apt/archives/ffmpeg_7%3a4.2.7-nvidia_arm64.deb (--unpack): trying to overwrite '/usr/include/aarch64-linux-gnu/libpostproc/postprocess.h', which is also in package libpostproc-dev:arm64 7:4.2.7-0ubuntu0.1 怎么解决
04-01
:/home/llz2/back# /usr/local/ffmpeg/ffmpeg-7.0.2/ffmpeg -y -ss 00:00:03 -i https://media.luoluozai.com/llz1/videos/20250620174326APs8ai.mp4 -an -vf scale=320:240 -vframes 1 -q:v 2 -update 1 /home/llz2/ffmpeg/videoCover/20250620174326APs8ai_frame_3.jpg ffmpeg version 7.0.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2024 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 59. 8.100 / 59. 8.100 libavcodec 61. 3.100 / 61. 3.100 libavformat 61. 1.100 / 61. 1.100 libavdevice 61. 1.100 / 61. 1.100 libavfilter 10. 1.100 / 10. 1.100 libswscale 8. 1.100 / 8. 1.100 libswresample 5. 1.100 / 5. 1.100 libpostproc 58. 1.100 / 58. 1.100 Segmentation fault (core dumped) ffmpeg 执行报错,同样版本的ffmpeg 同样的指令,在另一台服务器执行是ok的怎么排查
06-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值