LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-02-2017, 01:30 PM   #1
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Rep: Reputation: Disabled
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.
 
Old 07-02-2017, 02:57 PM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 3,046

Rep: Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332
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
 
Old 07-03-2017, 07:37 AM   #3
iaskaboutlinux
LQ Newbie
 
Registered: Jul 2017
Posts: 5

Rep: Reputation: Disabled
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!

Last edited by iaskaboutlinux; 07-03-2017 at 07:38 AM.
 
Old 07-03-2017, 08:00 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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.

Last edited by Habitual; 07-03-2017 at 08:04 AM.
 
Old 07-03-2017, 10:36 AM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
It looks like you have no Internet connection.
 
Old 07-03-2017, 11:30 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862
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.
 
Old 07-03-2017, 11:59 AM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Quote:
Originally Posted by AwesomeMachine View Post
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
 
Old 07-03-2017, 12:42 PM   #8
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian
Posts: 762

Rep: Reputation: 220Reputation: 220Reputation: 220
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?
 
Old 07-05-2017, 12:26 PM   #9
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
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

#
 
Old 07-05-2017, 12:32 PM   #10
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
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
 
Old 07-05-2017, 12:38 PM   #11
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
I also tried to ping my gateway and ftp.debian.org and both with successfully pinged.
 
Old 07-05-2017, 12:42 PM   #12
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian
Posts: 762

Rep: Reputation: 220Reputation: 220Reputation: 220
Are there any files under /etc/apt/preferences.d ?
Code:
# ls /etc/apt/preferences.d/

Last edited by erik2282; 07-05-2017 at 12:47 PM.
 
Old 07-05-2017, 12:46 PM   #13
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by erik2282 View Post
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:~$
 
Old 07-05-2017, 12:47 PM   #14
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian
Posts: 762

Rep: Reputation: 220Reputation: 220Reputation: 220
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...

Last edited by erik2282; 07-05-2017 at 12:52 PM.
 
Old 07-05-2017, 12:52 PM   #15
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to fetch Hasan5599 Linux - Newbie 9 03-22-2016 02:58 AM
failed to fetch dyeadon Linux - Newbie 2 07-26-2011 07:52 AM
[SOLVED] failed to fetch cdrom linux/unix87 Linux - Newbie 5 11-06-2010 10:22 PM
W: Failed to fetch http:...............!!! vin_akleh Linux - Newbie 5 12-30-2009 03:19 PM
Sarge - Failed to Fetch fester225 Debian 7 02-16-2005 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration