ubuntu 安装rar/unrar 提示错误E: Package ‘unrar‘ has no installation candidate解决方法
背景:ubuntu 16.04
安装 rar /unrar时提示错误:
sudo apt-get install unrarReading package lists... DoneBuilding dependency tree Reading state information... DonePackage unrar is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another source E: Package 'unrar' has no installation candidate
解决 方法:
-
打开https://www.rarlab.com/download.htm
-
下载RAR 5.71 beta 2 for Linux(根据系统选取32位/64位下载)
如何判断 系统 是32位/64位:
root# getconf LONG_BIT64 # 64位系统
安装:
tar -xzpvf rarlinux-x64-5.7.1b2.tar.gz cd rar make
输入 make 会提示:
root:/home/work/rar# makemkdir -p /usr/local/binmkdir -p /usr/local/libcp rar unrar /usr/local/bincp rarfiles.lst /etccp default.sfx /usr/local/lib