![无法在 Ubuntu 14.04 中找到软件包 lesstif2](https://linux22.com/image/1132676/%E6%97%A0%E6%B3%95%E5%9C%A8%20Ubuntu%2014.04%20%E4%B8%AD%E6%89%BE%E5%88%B0%E8%BD%AF%E4%BB%B6%E5%8C%85%20lesstif2%20.png)
E: Unable to locate package lesstif2
在 Ubuntu 14.04 中出现此错误
答案1
最新的 Ubuntu 版本lesstif2
是 Precise Pangolin (12.04)。您可以安装该软件包:
wget -P ~ http://mirrors.kernel.org/ubuntu/pool/universe/l/lesstif2/lesstif2_0.95.2-1_amd64.deb
sudo dpkg -i ~/lesstif2_0.95.2-1_amd64.deb
查找lesstif
适合您系统的软件包
apt-cache search lesstif | awk '$1~/lesstif/ {print}'
答案2
有时,当软件包前面带有类似 lib 的内容时,就会发生这种情况:
$ apt-cache search less | grep 'lesstif'
libpacklib-lesstif1-dev - CERNLIB data analysis suite - core GUI library (development files)
libpacklib-lesstif1-gfortran - CERNLIB data analysis suite - core GUI library
libpawlib-lesstif3-dev - CERNLIB PAW library (Lesstif-dependent part - development files)
libpawlib-lesstif3-gfortran - CERNLIB PAW library (Lesstif-dependent part)
pcb-lesstif - printed circuit board (pcb) design program - LessTif interface
vim-lesstif - Vi IMproved - enhanced vi editor (transitional package)