Can’t write packet with unknown timestamp
FFmpeg报错:
1 2 3 |
[matroska @ 0x7f9206809800] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [matroska @ 0x7f9206809800] Can't write packet with unknown timestamp av_interleaved_write_frame(): Invalid argument |
这个问题出在avi格式的视频上,解决: 在ffmpeg后面加上:-fflags +genpts 本文最后更新于2021年9月20日,已超过 […]
lxd如何释放快照占用的容器空间
容器用的久了,可能会发现即使文件删了,空间仍然没有释放。。。这是因为快照在作怪,如果删除的文件有快照在引用的话 ,删除文件是不会释放空间的,那么如何删除快照呢? 查看快照: zfs list -t snapshot -r m-zfs/con […]
Linux下如何快速打包大量文件
平时压缩文件的时候都是用zip命令,不过这个命令对多线程不友好,另外,速度也太慢。 有时候我们只是想单纯的打包一下文件,便于移动和传输,这时就可以直接使用打包命令,不进行压缩。 这里推荐pigz命令,它支持多线程,基本上是秒杀其他。 安装: […]
files list file for package ‘libapt-pkg5.0:amd64’ is missing final newline
使用apt-get安装包的时候出错:
1 2 3 4 5 |
Fetched 12.2 MB in 1s (8,002 kB/s) Extracting templates from packages: 100% Selecting previously unselected package fonts-dejavu-core. dpkg: unrecoverable fatal error, aborting: files list file for package 'libapt-pkg5.0:amd64' is missing final newline |
解决: 新建一个py文件,然后输入:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#!/usr/bin/python # 8th November, 2009 # update manager failed, giving me the error: # 'files list file for package 'xxx' is missing final newline' for every package. # some Googling revealed that this problem was due to corrupt files(s) in /var/lib/dpkg/info/ # looping though those files revealed that some did not have a final new line # this script will resolve that problem by appending a newline to all files that are missing it # NOTE: you will need to run this script as root, e.g. sudo python newline_fixer.py import os dpkg_path = '/var/lib/dpkg/info/' paths = os.listdir(dpkg_path) for path in paths: path = dpkg_path + path f = open(path, 'a+') data = f.read() if len(data) > 1 and data[-1:] != '\n': f.write('\n') print 'added newline character to:', path f.close() |
然后终端运行即可:python […]
Ubuntu安装三位数版本号Qbittorrent4.2.5
编译安装真是艰难,各种报错,一个错接着一个错!好在成功装好了,下面是安装方法,遇到报错可以本站搜索,基本上是涵盖了常见错误。文末我把这次安装的错误也汇总一下。 安装流程: wget https://github.com/qbittorren […]
Qbittorrent:Could not find Boost
又出问题: Could not find Boost 解决方法: wget https://jaist.dl.sourceforge.net/project/boost/boost/1.77.0/boost_1_77_0.tar.gz ta […]
Package nss was not found in the pkg-config search path.
qmake编译过程中出错:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
ERROR at //build/config/linux/pkg_config.gni:103:17: Script returned non-zero exit code. pkgresult = exec_script(pkg_config_script, args, "value") ^---------- Current dir: /home/mcj/qt-everywhere-src-5.15.2/qtwebengine/src/pdf/release/ Command: /usr/bin/python2 /home/mcj/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/build/config/linux/pkg-config.py -p pkg-config nss -v -lssl3 Returned 1. stderr: Package nss was not found in the pkg-config search path. Perhaps you should add the directory containing `nss.pc' to the PKG_CONFIG_PATH environment variable No package 'nss' found Could not run pkg-config. See //build/config/linux/nss/BUILD.gn:15:3: whence it was called. pkg_config("system_nss_no_ssl_config") { ^--------------------------------------- See //crypto/BUILD.gn:214:25: which caused the file to be included. public_configs += [ "//build/config/linux/nss:system_nss_no_ssl_config" ] ^-------------------------------------------------- Project ERROR: GN run error! Makefile:65: recipe for target 'sub-gn_run-pro-make_first' failed |
解决方案: sudo apt-get install libnss3-dev 本文最后更新于2021年9月4日,已超过 1 年没有更新,如果文章内 […]
configure: error: Could not find qmake
编译Qbittorrent4.2.5的时候出现:
1 2 3 4 5 6 7 8 9 |
checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.23... yes checking whether to enable the Debug build... no checking whether to enable the stacktrace feature... yes checking whether to enable the GUI... yes checking whether to install the systemd service file... no checking whether to enable the WebUI... yes checking for Qt5 qmake >= 5.9.0... not found configure: error: Could not find qmake |
Qbittorrent是基于PKG来寻找依赖路径的,所以需要添加一下本地的路径: PKG_CONFIG_PATH=/usr/ […]
macOS安装PHP并进行多版本管理
之前一直使用宝塔进行PHP管理,但是macOS系统下暂时不支持宝塔,所以就直接使用系统本地的PHP了。 这里使用homebrew进行安装(感谢@大卫,让我发现原来brew还可以安装PHP扩展)。 这里以PHP7.4和PHP7.1的互相切换举 […]
rtorrent: Caught Segmentation fault, dumping stack
rtorrent突然提示:
1 2 3 4 5 6 7 8 9 10 11 12 |
Caught Segmentation fault, dumping stack: 0 rtorrent 0x0000000104ffe0d1 _Z8do_panici + 398 1 libsystem_platform.dylib 0x00007fff68fd742d _sigtramp + 29 2 ??? 0x0000000000001400 0x0 + 5120 3 libcurl.4.dylib 0x00007fff668b493a curl_multi_socket_action + 38 4 rtorrent 0x0000000105061d39 _ZN4core9CurlStack14receive_actionEPNS_10CurlSocketEi + 59 5 libtorrent.21.dylib 0x00000001052a6e36 _ZN7torrent10PollKQueue7performEv + 252 6 libtorrent.21.dylib 0x00000001052ce9cf _ZN7torrent11thread_base10event_loopEPS0_ + 333 7 rtorrent 0x0000000104ffd954 main + 4640 8 libdyld.dylib 0x00007fff68dde7fd start + 1 9 ??? 0x0000000000000001 0x0 + 1 Abort trap: 6 |
基本上过30秒左右就会自动崩溃。。。 解决方法: brew install curl 更新完curl之后会提示: [crayon-6637e6d1 […]