1

I wanted to upgrade faster. I already tried the apt-get update command.

As my network connection is slow, I couldn't be able to finish it.

After 49% I stopped the process by hitting Ctrl+Z.

kos
  • 35,891
  • 1
    If the network connection is slow, there's nothing you can do in Ubuntu to fix it, other than maybe playing with your DSL settings. – kos Oct 11 '15 at 19:07
  • can i start upgrade from 49%? – Toufique khan Oct 11 '15 at 19:11
  • If you still have that terminal open, running fg should restart the upgrade from where it was when you stopped it. Is this your question or your question is how to speed up apt-get upgrade? – kos Oct 11 '15 at 19:13
  • You can't make stuff download faster if your internet is slow. You have to upgrade your plan if you need faster speeds. – TheWanderer Oct 11 '15 at 19:20
  • pacman -Sy is more efficient that apt-get update. That's the main reason I ditched ubuntu. I'm on a slow mobile internet connection and all that apt-get does is spit a load of file lists at my screen and still manage to not update the package list after 2hrs or so. – itsfarseen May 07 '16 at 08:01
  • Sometimes, I might not want to update all the packages, but just the package list, so that I can install an import package that gives 404 on apt-get install. I'd be better in hell than ubuntu in that situation. pacman -Sy simply downloads 4 files that are around 10 mb in total and you are ready – itsfarseen May 07 '16 at 08:03

2 Answers2

1

Use a Closer Mirror

Auto-Download Security Updates

This may be benefitial to ensure you get the most important updates. You could schedule the downloads for a time at which you don't use the Internet. You can also adjust what is updated/downloaded automatically.

unattended-upgrades instructions

Cache Packages

This will help if you have multiple machines on your network that will use the same updates

earthmeLon
  • 11,247
1

Install apt-fast :

Ubuntu 14.04 and above :

sudo add-apt-repository ppa:saiarcot895/myppa
sudo apt-get update
sudo apt-get install apt-fast

Older distributions :

https://askubuntu.com/a/501905/458410

and then do :

sudo apt-fast update
sudo apt-fast upgrade

instead of apt-get.

Create an alias :

  • adding this line at the end of /.bashrc

    alias apt-get='apt-fast'

  • launch

    source /.bashrc

and use apt-get as an alias for apt-fast:

apt-get update
mxdsp
  • 3,818