I am trying to install package fetch

dam@ubuntu:~$ sudo apt-get update
  W: Failed ....

adam@ubuntu:~$ sudo apt-get install fetch
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  E: Unable to locate package fetch

Solution 1:

To install Wine, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.6
sudo apt-get install winetricks

Based on your comment that you don't have a internet connection.

Now since you don't have an internet connection, you need to download Wine 1.6 file. Once downloaded, copy the file as is to the Ubuntu system, and then look at How to install a .tar.gz (or .tar.bz2) file

Solution 2:

You said in your question that you are "trying to install package fetch".

fetch is a simple, flexible download tool built on the HTTP Fetcher library. There are other utilities out there that handle HTTP downloads (wget) but a lot of them are intended more for mirroring websites and the like; fetch allows you to download a file at the command line by basically saying 'fetch URL'. fetch can be downloaded www.sourceforge.net fetch webpage.

Before installing fetch, the HTTP Fetcher library must be installed. It can be downloaded from: https://sourceforge.net/projects/http-fetcher/?source=directory

To install fetch uncompress the fetch package by running tar xf fetch-1.0.tar.gz and from the main fetch directory, type:

sudo apt-get install build-essential    
./configure
make
sudo make install

That's it. The program should then be located in /usr/local/bin/ (unless you specified a different prefix). Note: the above commands are for a basic install, you can also use checkinstall to make a .deb package.