How to change the directory of the apt-cacher-ng downloaded packages
BY sandeep.sasikumar
7 years ago
0 comments comment

As you have configured the apt-cacher-ng server, Now you have to change the directory where the packages will be downloaded. This is to ensure that you will provide a directory which has large space to store files or packages. To change the current directory to a new directory you have to the following steps.

To change the path you have to edit the following configuration file

  sudo nano /etc/apt-cacher-ng/acng.conf  

Now change the value of CacheDir and also create a folder with owner ng-cacher-ng:ng-cacher-ng and the permissions for this folder as 2755. For this

  sudo chown -R apt-cacher-ng:apt-cacher-ng   /path/to/the/cachedirectory
sudo chmod -R 2755 /path/to/the/cachedirectory  

To import already downloaded packages, We have to create a folder inside the cachedirectory and copy all the contents from /var/cache/apt/archieves to /path/to/cachedirectory

  sudo cp /var/cache/apt/archieves* /path/to/cachedirectory  

Now you can open a browser and type this address on the address bar


And click the “Start import” button on this page.

Hope this Helps.



on 05th May 2007 / by webmaster
BSNL is one of the leading broadband providers in India. Hardware Linux Networking Ubuntu Leave a reply Your email address will not be published. Required fields are marked * Abhi (not verified) access_time 30 Oct 2020 - 15:18 Hello, I am trying to connect to my D-link DI-614 wireless router to the my BSNL ADSL broadband modem DB108. My PC is currently connected to the modem via an ethernet link. Instead, I established a two-way connection in the following way: 1) Router - modem via ethernet cable. 2) PC - Router via an ethernet cable. However when I do this, my PC is not able to connect to the internet. I am wondering if anyone can help me out with this. Subhadeep (not verified) access_time 30 Oct 2020 - 15:18 Thankx for this i was in a real problem connecting to the net via broadband on BSNL. Thankx again man u r life saver... Add new comment
Leave a reply
Your email address will not be published. Required fields are marked *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.