LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Failed to Fetch (https://www.linuxquestions.org/questions/linux-newbie-8/failed-to-fetch-4175609026/)

THE PHANTOM 07-02-2017 01:30 PM

Failed to Fetch
 
Hello sirs,

I have that error:

Quote:

E: Failed to fetch http://ftp.debian.org/debian/pool/ma....2-1_amd64.deb Cannot initiate the connection to ftp.debian.org:80 (2001:610:1908:b000::148:12). - connect (101: Network is unreachable) [IP: 2001:610:1908:b000::148:12 80]
what is that?

it did on terminal when i was trying that code commands:

Code:

apt-get update && apt-get upgrade
Code:

apt-get dist-upgrade
i have also such problem on trying to check updates on software manager:

PHP Code:

A package dependency could not be found.
More information is available in the detailed report

Please help me.

wpeckham 07-02-2017 02:57 PM

There may be a repo issue, but it may only be your local cache. Try this
Quote:

sudo apt-get clean all
sudo apt-get update
sudo apt-get dist-upgrade -y
# and optionally
sudo apt-get autoremove

iaskaboutlinux 07-03-2017 07:37 AM

I think you have broken packages. Try:
Code:

sudo aptitude update && sudo aptitude safe-upgrade
If you don't have aptitude (you should have it on debian tho) you can install it with:
Code:

sudo apt-get install aptitude
If that does not fix the problem I would try disabling one by one my repos in sources.list so I find the problematic one. Then I would try and change the mirror if possible to see if this is the issue. If that doesn't help you can wait a day or two and if the issue is still there then I guess you would have to get feedback from someone more experienced. Good luck!

Habitual 07-03-2017 08:00 AM

Reboot and try again.
Post your sources.lst

Where's the "detailed report" mentioned?

"A package dependency could not be found."

I can only imagine.

AwesomeMachine 07-03-2017 10:36 AM

It looks like you have no Internet connection.

hydrurga 07-03-2017 11:30 AM

Someone else here had exactly this same fetch failure problem yesterday, except they were trying to access the Deepin repos.

They solved the problem by rebooting their router. Worth a shot.

Ztcoracat 07-03-2017 11:59 AM

Quote:

Originally Posted by AwesomeMachine (Post 5730104)
It looks like you have no Internet connection.

Agreed.

"Network is unreachable" seems like a sure bet:-

Let's see what the src's list shows:-

@THE PHANTOM:

What is the output of:
Code:

cat /etc/apt/sources.list

erik2282 07-03-2017 12:42 PM

The message is saying that your computer cannot reach the server specified for that repo. It can be a few things:
- you are not connected to a network. Can you ping your gateway IP address? Can you ping ftp.debian.org?
- If you are behing a proxy, have you created apt.conf file specifying your proxy info?
- there is a problem with the repo server. You can try switching to another repo server to see if you can download from it.
- Maybe a typo in your lines for the sources.list?

THE PHANTOM 07-05-2017 12:26 PM

that is my source list:

Quote:

gelapir@Gelapir:~$ cat /etc/apt/sources.list


# deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 NETINST Binary-1 20170116-10:57]/ jessie main

#deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 NETINST Binary-1 20170116-10:57]/ jessie main

deb http://mirrors.kernel.org/debian/ jessie main
deb-src http://mirrors.kernel.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

# jessie-updates, previously known as 'volatile'
deb http://mirrors.kernel.org/debian/ jessie-updates main
deb-src http://mirrors.kernel.org/debian/ jessie-updates main

#

deb http://ftp.debian.org/debian/ stable main contrib non-free
deb http://security.debian.org/ stable/updates main contrib non-free
deb http://ftp.debian.org/debian/ stable-updates main contrib non-free

#

#Debian 8 "Jessie"
deb http://ftp.debian.org/debian jessie-backports main contrib non-free
deb http://mozilla.debian.net/ jessie-backports firefox-release

#

THE PHANTOM 07-05-2017 12:32 PM

i tried that codes:
Quote:

sudo aptitude update && sudo aptitude safe-upgrade
Quote:

sudo apt-get clean all
sudo apt-get update
but output was that:
Quote:

gelapir@Gelapir:~$ sudo apt-get update
Ign http://ftp.debian.org stable InRelease
Hit http://ftp.debian.org stable-updates InRelease
Ign http://mozilla.debian.net jessie-backports InRelease
Hit http://ftp.debian.org jessie-backports InRelease
Hit http://ftp.debian.org stable Release.gpg
Ign http://mirrors.kernel.org jessie InRelease
Hit http://ftp.debian.org stable-updates/main amd64 Packages
Ign http://mozilla.debian.net jessie-backports Release.gpg
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.debian.org stable-updates/contrib amd64 Packages
Hit http://mirrors.kernel.org jessie-updates InRelease
Hit http://ftp.debian.org stable-updates/non-free amd64 Packages
Ign http://mozilla.debian.net jessie-backports Release
Hit http://ftp.debian.org stable-updates/contrib Translation-en
Get:1 http://security.debian.org stable/updates InRelease [62.9 kB]
Hit http://mirrors.kernel.org jessie Release.gpg
Hit http://ftp.debian.org stable-updates/main Translation-en
Ign http://mozilla.debian.net jessie-backports/firefox-release amd64 Packages/DiffIndex
Hit http://ftp.debian.org stable-updates/non-free Translation-en
Get:2 http://mirrors.kernel.org jessie-updates/main Sources [15.7 kB]
Hit http://ftp.debian.org stable Release
Get:3 http://ftp.debian.org jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]
Get:4 http://mirrors.kernel.org jessie-updates/main amd64 Packages/DiffIndex [8,392 B]
Get:5 http://ftp.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [24.6 kB]
Get:6 http://security.debian.org jessie/updates/main Sources [210 kB]
Get:7 http://mirrors.kernel.org jessie-updates/main Translation-en/DiffIndex [3,196 B]
Get:8 http://ftp.debian.org jessie-backports/non-free amd64 Packages/DiffIndex [22.4 kB]
Get:9 http://ftp.debian.org jessie-backports/contrib Translation-en/DiffIndex [6,976 B]
Hit http://mirrors.kernel.org jessie Release
Get:10 http://ftp.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]
Get:11 http://ftp.debian.org jessie-backports/non-free Translation-en/DiffIndex [16.7 kB]
Get:12 http://mirrors.kernel.org jessie/main Sources [7,055 kB]
Hit http://ftp.debian.org stable/main amd64 Packages
Get:13 http://security.debian.org jessie/updates/main amd64 Packages [415 kB]
Hit http://ftp.debian.org stable/contrib amd64 Packages
Hit http://ftp.debian.org stable/non-free amd64 Packages
Hit http://ftp.debian.org stable/contrib Translation-en
Hit http://ftp.debian.org stable/main Translation-en
Hit http://ftp.debian.org stable/non-free Translation-en
Ign http://mozilla.debian.net jessie-backports/firefox-release Translation-en_US
Ign http://mozilla.debian.net jessie-backports/firefox-release Translation-en
Get:14 http://mirrors.kernel.org jessie/main amd64 Packages [6,790 kB]
Err http://mozilla.debian.net jessie-backports/firefox-release amd64 Packages
404 Not Found [IP: 140.211.166.202 80]
Get:15 http://mirrors.kernel.org jessie/main Translation-en [4,583 kB]
Get:16 http://security.debian.org jessie/updates/main Translation-en [219 kB]
Get:17 http://security.debian.org stable/updates/main amd64 Packages [53.6 kB]
Get:18 http://security.debian.org stable/updates/contrib amd64 Packages [32 B]
Get:19 http://security.debian.org stable/updates/non-free amd64 Packages [1,272 B]
Get:20 http://security.debian.org stable/updates/contrib Translation-en [14 B]
Get:21 http://security.debian.org stable/updates/main Translation-en [24.1 kB]
Get:22 http://security.debian.org stable/updates/non-free Translation-en [481 B]
Fetched 4,040 kB in 9s (440 kB/s)
W: Failed to fetch http://mozilla.debian.net/dists/jess...amd64/Packages 404 Not Found [IP: 140.211.166.202 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
gelapir@Gelapir:~$ sudo aptitude update && sudo aptitude safe-upgrade
Ign http://mozilla.debian.net jessie-backports InRelease
Ign http://ftp.debian.org stable InRelease
Ign http://mozilla.debian.net jessie-backports Release.gpg
Hit http://ftp.debian.org stable-updates InRelease
Ign http://mozilla.debian.net jessie-backports Release
Hit http://ftp.debian.org jessie-backports InRelease
Ign http://mirrors.kernel.org jessie InRelease
Ign http://mozilla.debian.net jessie-backports/firefox-release amd64 Packages/DiffIndex
Hit http://ftp.debian.org stable Release.gpg
Hit http://ftp.debian.org stable-updates/main amd64 Packages
Hit http://mirrors.kernel.org jessie-updates InRelease
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.debian.org stable-updates/contrib amd64 Packages
Hit http://ftp.debian.org stable-updates/non-free amd64 Packages
Hit http://ftp.debian.org stable-updates/contrib Translation-en
Hit http://mirrors.kernel.org jessie Release.gpg
Hit http://security.debian.org stable/updates InRelease
Hit http://ftp.debian.org stable-updates/main Translation-en
Hit http://ftp.debian.org stable-updates/non-free Translation-en
Get: 1 http://mirrors.kernel.org jessie-updates/main Sources [15.7 kB]
Hit http://ftp.debian.org stable Release
Get: 2 http://ftp.debian.org jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]
Get: 3 http://ftp.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [24.6 kB]
Get: 4 http://mirrors.kernel.org jessie-updates/main amd64 Packages/DiffIndex [8,392 B]
Get: 5 http://ftp.debian.org jessie-backports/non-free amd64 Packages/DiffIndex [22.4 kB]
Get: 6 http://ftp.debian.org jessie-backports/contrib Translation-en/DiffIndex [6,976 B]
Ign http://mozilla.debian.net jessie-backports/firefox-release Translation-en_US
Get: 7 http://mirrors.kernel.org jessie-updates/main Translation-en/DiffIndex [3,196 B]
Ign http://mozilla.debian.net jessie-backports/firefox-release Translation-en
Get: 8 http://ftp.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]
Err http://mozilla.debian.net jessie-backports/firefox-release amd64 Packages
404 Not Found [IP: 5.153.231.4 80]
Get: 9 http://ftp.debian.org jessie-backports/non-free Translation-en/DiffIndex [16.7 kB]
Hit http://mirrors.kernel.org jessie Release
Get: 10 http://mirrors.kernel.org jessie/main Sources [7,055 kB]
Get: 11 http://mirrors.kernel.org jessie/main amd64 Packages [6,790 kB]
Hit http://ftp.debian.org stable/main amd64 Packages
Hit http://ftp.debian.org stable/contrib amd64 Packages
Hit http://ftp.debian.org stable/non-free amd64 Packages
Hit http://ftp.debian.org stable/contrib Translation-en
Hit http://ftp.debian.org stable/main Translation-en
Hit http://ftp.debian.org stable/non-free Translation-en
Get: 12 http://mirrors.kernel.org jessie/main Translation-en [4,583 kB]
Hit http://security.debian.org jessie/updates/main Sources
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://security.debian.org stable/updates/main amd64 Packages
Hit http://security.debian.org stable/updates/contrib amd64 Packages
Hit http://security.debian.org stable/updates/non-free amd64 Packages
Hit http://security.debian.org stable/updates/contrib Translation-en
Hit http://security.debian.org stable/updates/main Translation-en
Hit http://security.debian.org stable/updates/non-free Translation-en
Fetched 11.5 MB in 10s (1,112 kB/s)
W: Failed to fetch http://mozilla.debian.net/dists/jess...md64/Packages: 404 Not Found [IP: 5.153.231.4 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Couldn't rebuild package cache


THE PHANTOM 07-05-2017 12:38 PM

I also tried to ping my gateway and ftp.debian.org and both with successfully pinged.

erik2282 07-05-2017 12:42 PM

Are there any files under /etc/apt/preferences.d ?
Code:

# ls /etc/apt/preferences.d/

THE PHANTOM 07-05-2017 12:46 PM

Quote:

Originally Posted by erik2282 (Post 5730942)
Are there any files under /etc/apt/preferences.d ?
Code:

# ls /etc/apt/preferences.d/

there was nothing on output:
Quote:

gelapir@Gelapir:~$ ls /etc/apt/preferences.d/
gelapir@Gelapir:~$


erik2282 07-05-2017 12:47 PM

Also, as I study your sources.list closer, I can see you have entries for Jessie and stable, which are not the same versions of Debian. jessie is version 8, and stable is version 9. This needs to be corrected. Do you have Debian 8 or Debian 9 installed?

Please post the output of:
Code:

# cat /etc/*release*
Edit:
It sounds like you probably have Jessie. But when Debian Stretch became "stable" and Debian Jessie became "oldstable" you started having issues with that mismatch. This is why i don't use stable in my sources.list and instead the name, wheezy, jesse, etc...

THE PHANTOM 07-05-2017 12:52 PM

Quote:

Originally Posted by Habitual (Post 5730066)
Reboot and try again.
Post your sources.lst

Where's the "detailed report" mentioned?

"A package dependency could not be found."

I can only imagine.

that is detailed report:

Quote:

The following packages have unmet dependencies:
plasma-widgets-addons: Depends: plasma-framework but it is not going to be installed
Depends: plasma-workspace but it is not going to be installed
Depends: qml-module-org-kde-draganddrop but it is not going to be installed
Depends: qml-module-org-kde-purpose but it is not going to be installed
Depends: qml-module-org-kde-kcoreaddons but it is not going to be installed
Depends: qml-module-org-kde-kio but it is not going to be installed
Depends: qml-module-qtgraphicaleffects but it is not going to be installed
Depends: qml-module-qtwebkit but it is not going to be installed
Depends: kio but it is not going to be installed
Depends: libkf5completion5 (>= 4.97.0) but it is not going to be installed
Depends: libkf5configgui5 (>= 4.97.0) but it is not going to be installed
Depends: libkf5iconthemes5 (>= 4.96.0) but it is not going to be installed
Depends: libkf5kiocore5 (>= 4.96.0) but it is not going to be installed
Depends: libkf5kiowidgets5 (>= 4.96.0) but it is not going to be installed
Depends: libkf5newstuff5 (>= 5.0.0) but it is not going to be installed
Depends: libkf5notifications5 (>= 5.8.0+git20150317.0114+15.04) but it is not going to be installed

all reports cannot post here for limitation : The text that you have entered is too long (61946 characters). Please shorten it to 30000 characters long.


All times are GMT -5. The time now is 02:15 PM.