尝试安装 fatrat 时出现以下错误:
ignoring file '50unattended-upgrade.ucf-dist' in directory '/etc/apt/apt.conf.d/'**
E: Unable to locate package fatrat
答案1
删除文件应该可以解决问题,如果目录 1 只是因为其中有无效文件而发生,则可能会消除所有通知。因此50unattended-upgrades
应该删除文件。
sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist
要安装 fatrat,请在终端上运行以下命令:
sudo apt-get install libgloox-dev libcurl4-openssl-dev libpion-dev libqt5svg5-dev libqt5svg5-private-dev libboost-date-time1.58-dev qttools5-dev-tools qttools5-dev-tools libtorrent-rasterbar-dev cmake git
git clone https://github.com/LubosD/fatrat.git
cd fatrat
cmake . -DWITH_BITTORRENT=ON -DWITH_SFTP=ON -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
fatrat
/usr
可以使用来将前缀更改为-DCMAKE_INSTALL_PREFIX=/usr
。默认前缀是/usr/local
,但可能取决于具体实现。