直接用dpkg安裝套件,如果有缺少的相依套件,之後使用apt install就會顯示E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).錯誤,必須要手動解決相依性問提
Quick instructions to create a trivial local archive with apt-ftparchive We use /var/lib/mydebs as the example location
Create the directory
mkdir -p /var/lib/mydebs Every time you put new files in the directory, you'll have to scan the directory and update:
cd /var/lib/mydebs apt-ftparchive packages . > Packages apt-ftparchive release . > Release Add this line to /etc/apt/sources.list
deb [allow-insecure=yes] file:/var/lib/mydebs ./ Now you can install the package normally. If apt-get asks "Install these packages without verification?", answer "Y" to install. That's because this local repository is not signed.
$ sudo apt-get install gparted=0.16.1-1 Reading package lists... Done Building dependency tree Reading state information... Done gparted is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 265 not upgraded.
Posted Updated a few seconds read (About 58 words)