Can not install

Asked by Hildermes José Medeiros Filho

sudo apt-get install libvtk6-dev always returns: "fail to fetch"

The repository is broken? Maybe it was point to the dead ubuntu 14 server?

Or my firewall is making me crazy?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu vtk6 Edit question
Assignee:
No assignee Edit question
Solved by:
Hildermes José Medeiros Filho
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the full output that you receive for the commands

uname -a
lsb_release -crid
sudo apt-get update
apt-cache policy libvtk6-dev
sudo apt-get install libvtk6-dev

Revision history for this message
Hildermes José Medeiros Filho (hildermes) said :
#2

1
uname -a
Linux efotoodm 4.15.0-36-generic #39~16.04.1-Ubuntu SMP Tue Sep 25 08:59:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

2
lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial

3
sudo apt-get update
Hit:1 http://br.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://br.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://br.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Hit:4 https://deb.nodesource.com/node_6.x xenial InRelease
Hit:5 https://apt.dockerproject.org/repo ubuntu-xenial InRelease
Hit:6 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu xenial InRelease
Hit:7 http://archive.canonical.com/ubuntu xenial InRelease
Get:8 http://br.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [320 kB]
Hit:9 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease
Hit:10 https://packages.microsoft.com/repos/vscode stable InRelease
Get:11 http://br.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [227 kB]
Get:12 http://br.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [247 kB]
Get:13 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Hit:14 http://ppa.launchpad.net/george-edison55/cmake-3.x/ubuntu xenial InRelease
Get:15 http://br.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [333 kB]
Get:16 http://br.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5.960 B]
Get:17 http://br.archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [14,3 kB]
Get:18 http://br.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3.328 B]
Get:19 http://br.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5.104 B]
Hit:20 http://ppa.launchpad.net/ubuntugis/ppa/ubuntu xenial InRelease
Get:21 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67,7 kB]
Hit:22 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial InRelease
Get:23 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [72,5 kB]
Get:24 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [108 kB]
Get:25 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [145 kB]
Fetched 1.871 kB in 3s (484 kB/s)
AppStream cache update completed, but some metadata was ignored due to errors.

Reading package lists... Done

4
apt-cache policy libvtk6-dev
libvtk6-dev:
  Installed: (none)
  Candidate: 6.2.0+dfsg1-10build1
  Version table:
     6.2.0+dfsg1-10build1 500
        500 http://br.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
5
sudo apt-get install libvtk6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libegl1-mesa-dev libgles2-mesa-dev libjemalloc1 libmirclient-dev
  libmircommon-dev libmircookie-dev libmircookie2 libmircore-dev
  libprotobuf-dev libqt5clucene5 libqt5concurrent5 libqt5designer5
  libqt5designercomponents5 libqt5help5 libqt5opengl5-dev
  libqt5quickparticles5 libqt5quickwidgets5 libqt5webkit5-dev libvtk5.10
  libwayland-bin libwayland-dev libxkbcommon-dev linux-headers-4.15.0-29
  linux-headers-4.15.0-29-generic linux-image-4.15.0-29-generic
  linux-modules-4.15.0-29-generic linux-modules-extra-4.15.0-29-generic
  qt5-qmake qtbase5-dev qtbase5-dev-tools qtdeclarative5-dev qttools5-dev
  qttools5-private-dev tcl-vtk
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libvtk6-java
Suggested packages:
  java-virtual-machine
The following NEW packages will be installed:
  libvtk6-dev libvtk6-java
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
Need to get 9.827 kB of archives.
After this operation, 55,2 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Err:1 http://br.archive.ubuntu.com/ubuntu xenial/universe amd64 libvtk6-java amd64 6.2.0+dfsg1-10build1
  Connection failed [IP: 200.236.31.4 80]
Err:2 http://br.archive.ubuntu.com/ubuntu xenial/universe amd64 libvtk6-dev amd64 6.2.0+dfsg1-10build1
  Connection failed [IP: 200.236.31.4 80]
E: Failed to fetch http://br.archive.ubuntu.com/ubuntu/pool/universe/v/vtk6/libvtk6-java_6.2.0+dfsg1-10build1_amd64.deb Connection failed [IP: 200.236.31.4 80]

E: Failed to fetch http://br.archive.ubuntu.com/ubuntu/pool/universe/v/vtk6/libvtk6-dev_6.2.0+dfsg1-10build1_amd64.deb Connection failed [IP: 200.236.31.4 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

If you switch to the main repository, does it install OK?

Revision history for this message
Hildermes José Medeiros Filho (hildermes) said :
#4

First, thanks.

But no, it doesn't.

I'll try again tomorrow, I've chaged it because it wasn't working, forgot to change it back.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5
Revision history for this message
Hildermes José Medeiros Filho (hildermes) said :
#6

Andrew, I've tried a spanish server and It worked true apt-get

But I'm sure your solution would work,

Thanks.

Revision history for this message
Hildermes José Medeiros Filho (hildermes) said :
#7

Andrew, I've tried a spanish server and It worked thru e apt-get. **

But I'm sure your solution would work.

Thanks!