LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to find package error on ubuntu server (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-find-package-error-on-ubuntu-server-4175480365/)

mosa 10-10-2013 10:28 PM

Unable to find package error on ubuntu server
 
I installed ubuntu 12.04 on vmplayer on my laptop and I keep getting that error. I can ping google so I know my network is Ok. Also apt-get update works also.The sources list is long I'm not sure if it is pointing to the proper address. I did not edit it so I assume it's Ok. It seems to be the same with any package.
Please reply somebody
Thank You,mosa

ilesterg 10-10-2013 10:33 PM

Hey,

When do you encounter the error?

Also, it would help if you paste your sources here.

Cheers!

JJJCR 10-10-2013 10:41 PM

are you installing a specific package?

what command did you enter?

if you're installing a specific package, it could be that the package is not available anymore on that address you're accessing.

or make sure you're typing a correct package name.

mosa 10-10-2013 10:57 PM

Thank you for the reply

I was trying to install webmin but nothing seems to work.

#

# deb cdrom:[Ubuntu-Server 12.04.3 LTS _Precise Pangolin_ - Release i386 (20130820.2)]/ precise main restricted

#deb cdrom:[Ubuntu-Server 12.04.3 LTS _Precise Pangolin_ - Release i386 (20130820.2)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise universe
deb http://ca.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ca.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main

mosa 10-10-2013 11:03 PM

Also this is what I get when I do apt-get update

zip2: (stdin) is not a bzip2 file.
Get:48 http://ca.archive.ubuntu.com precise-updates/main Translation-en
100% [48 Translation-en bzip2 0 B] 1,511 B/s 0sbzip2: (stdin) is not a bzip2 file.
Get:49 http://ca.archive.ubuntu.com precise-updates/multiverse Translation-en
100% [49 Translation-en bzip2 0 B] 1,511 B/s 0sbzip2: (stdin) is not a bzip2 file.
Get:50 http://ca.archive.ubuntu.com precise-updates/restricted Translation-en
100% [50 Translation-en bzip2 0 B] 1,511 B/s 0sbzip2: (stdin) is not a bzip2 file.
Get:51 http://ca.archive.ubuntu.com precise-updates/universe Translation-en_CA
100% [51 Translation-en_CA bzip2 0 B] 1,511 B/s 0sbzip2: (stdin) is not a bzip2 file.
Get:52 http://ca.archive.ubuntu.com precise-updates/universe Translation-en
100% [52 Translation-en bzip2 0 B] 1,511 B/s 0sbzip2: (stdin) is not a bzip2 file.
Get:53 http://ca.archive.ubuntu.com precise-backports/main Translation-en
100% [53 Translation-en bzip2 0 B] 1,511 B/s 0sbzip2: (stdin) is not a bzip2 file.
Get:54 http://ca.archive.ubuntu.com precise-backports/multiverse Translation-en
100% [54 Translation-en bzip2 0 B] 1,511 B/s 0sbzip2: (stdin) is not a bzip2 file.
Get:55 http://ca.archive.ubuntu.com precise-backports/restricted Translation-en
100% [55 Translation-en bzip2 0 B] 1,511 B/s 0sbzip2: (stdin) is not a bzip2 file.
Get:56 http://ca.archive.ubuntu.com precise-backports/universe Translation-en
100% [56 Translation-en bzip2 0 B] 2,089 B/s 0sbzip2: (stdin) is not a bzip2 file.
Err http://ca.archive.ubuntu.com precise/main Translation-en_CA
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise/main Translation-en
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise/multiverse Translation-en
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise/restricted Translation-en
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise/universe Translation-en_CA
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise/universe Translation-en
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise-updates/main Translation-en_CA
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise-updates/main Translation-en
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise-updates/multiverse Translation-en
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise-updates/restricted Translation-en
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise-updates/universe Translation-en_CA
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise-updates/universe Translation-en
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise-backports/main Translation-en
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise-backports/multiverse Translation-en
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise-backports/restricted Translation-en
Unable to connect to 192.168.0.1:8080:
Err http://ca.archive.ubuntu.com precise-backports/universe Translation-en
Unable to connect to 192.168.0.1:8080:
Fetched 176 kB in 57s (3,078 B/s)
W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_precise-security_main_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_precise-security_restricted_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_precise-security_universe_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_precise-security_multiverse_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_precise-security_main_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_precise-security_restricted_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_precise-security_universe_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_precise-security_multiverse_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise_main_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise_restricted_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise_universe_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise_multiverse_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise_universe_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise_multiverse_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-updates_main_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-updates_universe_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-updates_multiverse_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-updates_main_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-updates_universe_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-updates_multiverse_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-backports_main_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-backports_restricted_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-backports_universe_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-backports_multiverse_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-backports_main_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-backports_restricted_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-backports_universe_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ca.archive.ubuntu.com_ubuntu_dists_precise-backports_multiverse_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_precise-security_main_i18n_Translation-en Encountered a section with no Package: header

W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_precise-security_multiverse_i18n_Translation-en Encountered a section with no Package: header

W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_precise-security_restricted_i18n_Translation-en Encountered a section with no Package: header

W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_precise-security_universe_i18n_Translation-en Encountered a section with no Package: header

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...nslation-en_CA Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...Translation-en Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...Translation-en Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...Translation-en Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...nslation-en_CA Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...Translation-en Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...nslation-en_CA Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...Translation-en Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...Translation-en Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...Translation-en Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...nslation-en_CA Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...Translation-en Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...Translation-en Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...Translation-en Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...Translation-en Unable to connect to 192.168.0.1:8080:

W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/...Translation-en Unable to connect to 192.168.0.1:8080:

E: Some index files failed to download. They have been ignored, or old ones used instead.

JJJCR 10-10-2013 11:09 PM

please type this on the terminal window and post back the result:

Quote:

ping -c 3 4.2.2.2
if you type this command below will it work:

Quote:

sudo apt-get install webmin

from your logs, it seems that you don't have internet connection, anyway try the ping command and post back the result. :)

mosa 10-10-2013 11:18 PM

Thank you all for the help


PING 4.2.2.2 (4.2.2.2) 56(84) bytes of data.
64 bytes from 4.2.2.2: icmp_req=1 ttl=42 time=110 ms
64 bytes from 4.2.2.2: icmp_req=2 ttl=42 time=100 ms
64 bytes from 4.2.2.2: icmp_req=3 ttl=42 time=107 ms

--- 4.2.2.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 100.297/105.935/110.333/4.189 ms

mosa 10-10-2013 11:24 PM

This is the result from trying to install webmin. I'm not sure what is happening. Is there some way the sources list is faulty from a new install?

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package webmin

JJJCR 10-10-2013 11:24 PM

okay, you got internet connection:

have you tried this:==>
Quote:

sudo apt-get install webmin
please type this and post back the result:

Quote:

cat /etc/resolv.conf

evo2 10-10-2013 11:26 PM

Hi,

Quote:

Unable to connect to 192.168.0.1:8080
This looks to be your problem. apt-get seems to be trying to use a proxy that is down. Are you intentionally using a proxy?

Evo2.

mosa 10-10-2013 11:31 PM

Yes this is a company network and we connect through a proxy. I cannot bypass it. I'm not very network savy.

evo2 10-10-2013 11:35 PM

Hi,
Quote:

Originally Posted by mosa (Post 5043750)
Yes this is a company network and we connect through a proxy. I cannot bypass it. I'm not very network savy.

Well, the proxy seems to have a problem. Can you reproduce this proxy problem using something other than apt-get? Eg, try to download so large file with wget or your browser? Do other systems on the network have problems?

Evo2.

mosa 10-10-2013 11:46 PM

Windows machines don't seem to have a problem.

evo2 10-10-2013 11:53 PM

Hi,
Quote:

Originally Posted by mosa (Post 5043760)
Windows machines don't seem to have a problem.

ok, what about programs other than apt-get?

Evo2.

JJJCR 10-11-2013 12:52 AM

Quote:

Originally Posted by mosa (Post 5043760)
Windows machines don't seem to have a problem.

DNS and Gateway IP Address of the Linux machine is the same with Windows machine?


All times are GMT -5. The time now is 11:50 PM.