要自定义aptitude的配置文件,可以按照以下步骤在Ubuntu上进行操作:
sudo nano /etc/apt/apt.conf
APT::APTITUDE::CmdLine::Update-PkgLists "0";
APT::APTITUDE::CmdLine::Upgrade "0";
APT::APTITUDE::CmdLine::Safe "0";
APT::APTITUDE::CmdLine::Safe-Upgrade "0";
APT::APTITUDE::CmdLine::Remove-Unused "0";
sudo aptitude update
通过这些步骤,您可以在Ubuntu上自定义aptitude的配置文件以满足特定的需求。