I am trying for offline installation of certain packages using apt-get. I have modified sources.list file to reflect the local cache directory path where I have kept all the required packages. However, when I do apt-get install of the package(which is present in local cache direcory), I get error "Package" file not found. How do I create the package file?
When I run apt-get install vim, I get "Package" fiel not found though vim_xxxx.deb package is present in local cache direcory
Note: I also copied Package file from ubuntu archive repository into the local cache direcory and installation went fine. Is this the correct solution? OR should I create a new Package file?
I tried the following command and it worked
sudo dpkg-scanpackages . /dev/null | gzip -c9 > Packages.gz
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다