操作系统:Ubuntu16.04.4 amd64
安装http://m3u8-segmenter.inodes.org/方式安装m3u8-segmenter报错,于是有了这篇文章
apt install aptitude apt-add-repository ppa:johnf-inodes/m3u8-segmenter aptitude update apt-get install m3u8-segmenter
其中在更新下载源的过程中报错:
root@ubuntu:/home/tomcat# aptitude update Hit http://mirrors.aliyun.com/ubuntu xenial InRelease Hit http://mirrors.aliyun.com/ubuntu xenial-updates InRelease Hit http://mirrors.aliyun.com/ubuntu xenial-backports InRelease Hit http://mirrors.aliyun.com/ubuntu xenial-security InRelease Hit http://archive.ubuntu.com/ubuntu xenial InRelease Ign http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial InRelease Hit http://archive.canonical.com/ubuntu xenial InRelease Hit http://ppa.launchpad.net/linuxuprising/java/ubuntu xenial InRelease Ign http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial Release Err http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial/main amd64 Packages 404 Not Found [IP: 91.189.95.83 80] Ign http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial/main i386 Packages Ign http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial/main all Packages Ign http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial/main Translation-en_US Ign http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial/main Translation-en W: The repository 'http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial Release' does not have a Release file. W: Failed to fetch http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu/dists/xenial/main/binary-amd64/Packages: 404 Not Found [IP: 91.189.95.83 80] E: Some index files failed to download. They have been ignored, or old ones used instead. root@ubuntu:/home/tomcat# aptitude update Hit http://mirrors.aliyun.com/ubuntu xenial InRelease Hit http://mirrors.aliyun.com/ubuntu xenial-updates InRelease Hit http://mirrors.aliyun.com/ubuntu xenial-backports InRelease Hit http://mirrors.aliyun.com/ubuntu xenial-security InRelease Hit http://archive.ubuntu.com/ubuntu xenial InRelease Hit http://archive.canonical.com/ubuntu xenial InRelease Ign http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial InRelease Hit http://ppa.launchpad.net/linuxuprising/java/ubuntu xenial InRelease Ign http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial Release Err http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial/main amd64 Packages 404 Not Found [IP: 91.189.95.83 80] Ign http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial/main i386 Packages Ign http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial/main all Packages Ign http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial/main Translation-en_US Ign http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial/main Translation-en W: The repository 'http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu xenial Release' does not have a Release file. W: Failed to fetch http://ppa.launchpad.net/johnf-inodes/m3u8-segmenter/ubuntu/dists/xenial/main/binary-amd64/Packages: 404 Not Found [IP: 91.189.95.83 80] E: Some index files failed to download. They have been ignored, or old ones used instead. root@ubuntu:/home/tomcat# apt-get install m3u8-segmenter Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package m3u8-segmenter
笔者的安装方法:
apt install curl build-essential automake automake1.11 libavformat-dev pkg-config ffmpeg cd /usr/src curl https://codeload.github.com/m3u8-segmenter/m3u8-segmenter/tar.gz/v1.0.2 -o m3u8-segmenter.v1.0.2.tar.gz tar -zxvf m3u8-segmenter.v1.0.2.tar.gz #安装m3u8-segmenter aclocal autoreconf automake -ac ./configure make sudo make install
安装截图
centos7安装命令:
yum install gcc make nasm pkgconfig wget curl curl-devel zlib-devel openssl-devel perl cpio expat-devel gettext-devel libtool mhash.x86_64 perl-Digest-SHA1.x86_64 pcre.i386 pcre.x86_64 pcre-devel.i386 pcre-devel.x86_64 curl https://codeload.github.com/m3u8-segmenter/m3u8-segmenter/tar.gz/v1.0.2 -o m3u8-segmenter.v1.0.2.tar.gz tar -zxvf m3u8-segmenter.v1.0.2.tar.gz #安装m3u8-segmenter aclocal automake -ac ./configure make sudo make install