LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-05-2017, 12:54 PM   #16
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by erik2282 View Post
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...
output is:

Quote:
gelapir@Gelapir:~$ cat /etc/*release*
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
gelapir@Gelapir:~$
 
Old 07-05-2017, 12:54 PM   #17
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
It appears only two of several are not responding, and those may not be valid.
The question about your version is critical, as you will want ONLY the source entries for your running version.

There are automated tools to obtain a new mirror list and the closest/fastest resources, but you will still need to know what version to pull.
 
Old 07-05-2017, 12:56 PM   #18
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Rep: Reputation: 229Reputation: 229Reputation: 229
go ahead and edit your sources.list file and any instance that you see in there called "stable" change it to "jessie". Then after that run"
Code:
apt-get update && apt-get upgrade
 
Old 07-05-2017, 12:56 PM   #19
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
Thanks for replay sir.
 
Old 07-05-2017, 01:04 PM   #20
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
i changed stable to jessie and output was that:

Quote:
gelapir@Gelapir:~$ sudo apt-get update && apt-get upgrade
[sudo] password for gelapir:
Ign http://ftp.debian.org jessie InRelease
Get:1 http://ftp.debian.org jessie-updates InRelease [145 kB]
Ign http://mozilla.debian.net jessie-backports InRelease
Ign http://mirrors.kernel.org jessie InRelease
Hit http://security.debian.org jessie/updates InRelease
Ign http://mozilla.debian.net jessie-backports Release.gpg
Hit http://ftp.debian.org jessie-backports InRelease
Hit http://mirrors.kernel.org jessie-updates InRelease
Get:2 http://ftp.debian.org jessie Release.gpg [2,373 B]
Ign http://mozilla.debian.net jessie-backports Release
Hit http://mirrors.kernel.org jessie Release.gpg
Get:3 http://ftp.debian.org jessie-updates/contrib amd64 Packages [32 B]
Ign http://mozilla.debian.net jessie-backports/firefox-release amd64 Packages/DiffIndex
Hit http://mirrors.kernel.org jessie Release
Get:4 http://ftp.debian.org jessie-updates/contrib Translation-en [14 B]
Get:5 http://ftp.debian.org jessie-updates/main Translation-en [12.7 kB]
Get:6 http://mirrors.kernel.org jessie-updates/main Sources [15.7 kB]
Get:7 http://ftp.debian.org jessie-updates/non-free Translation-en [496 B]
Get:8 http://ftp.debian.org jessie Release [148 kB]
Get:9 http://mirrors.kernel.org jessie-updates/main amd64 Packages/DiffIndex [8,392 B]
Get:10 http://ftp.debian.org jessie-updates/main amd64 Packages [15.8 kB]
Get:11 http://security.debian.org jessie/updates/contrib amd64 Packages [2,506 B]
Get:12 http://mirrors.kernel.org jessie-updates/main Translation-en/DiffIndex [3,196 B]
Get:13 http://ftp.debian.org jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]
Get:14 http://ftp.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [24.6 kB]
Get:15 http://mirrors.kernel.org jessie/main Sources [7,055 kB]
Get:16 http://ftp.debian.org jessie-backports/non-free amd64 Packages/DiffIndex [22.4 kB]
Get:17 http://security.debian.org jessie/updates/non-free amd64 Packages [14 B]
Get:18 http://ftp.debian.org jessie-backports/contrib Translation-en/DiffIndex [6,976 B]
Get:19 http://ftp.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]
Get:20 http://ftp.debian.org jessie-backports/non-free Translation-en/DiffIndex [16.7 kB]
Get:21 http://security.debian.org jessie/updates/contrib Translation-en [1,211 B]
Get:22 http://ftp.debian.org jessie-updates/non-free amd64 Packages [516 B]
Get:23 http://ftp.debian.org jessie/main amd64 Packages [6,790 kB]
Get:24 http://security.debian.org jessie/updates/non-free Translation-en [14 B]
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
Ign http://mozilla.debian.net jessie-backports/firefox-release Translation-en_US
Ign http://mozilla.debian.net jessie-backports/firefox-release Translation-en
Err http://mozilla.debian.net jessie-backports/firefox-release amd64 Packages
404 Not Found [IP: 140.211.166.202 80]
Get:25 http://ftp.debian.org jessie/contrib amd64 Packages [50.2 kB]
Get:26 http://ftp.debian.org jessie/non-free amd64 Packages [83.6 kB]
Get:27 http://ftp.debian.org jessie/contrib Translation-en [38.5 kB]
Get:28 http://ftp.debian.org jessie/main Translation-en [4,583 kB]
Get:29 http://mirrors.kernel.org jessie/main amd64 Packages [6,790 kB]
Get:30 http://ftp.debian.org jessie/non-free Translation-en [72.1 kB]
Get:31 http://mirrors.kernel.org jessie/main Translation-en [4,583 kB]
Fetched 19.1 MB in 14s (1,312 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:~$
 
Old 07-05-2017, 01:07 PM   #21
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
now my source list looks like that:

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/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.debian.org/debian/ jessie-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, 01:11 PM   #22
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
so what have to do next, how to solve that issue? also needs my source list any editions?
 
Old 07-05-2017, 01:13 PM   #23
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Rep: Reputation: 229Reputation: 229Reputation: 229
You can no longer use that repo. Delete that line from your sources.list. After that update and upgrade again.

https://mozilla.debian.net/

Debian Mozilla team

The Debian Mozilla team provides various versions of some Mozilla related packages for use on different Debian systems. The following wizard helps you to find the packages suitable for your system.
WARNING: Iceweasel is gone. Please update your apt sources.
WARNING: Jessie and Stretch backports of Firefox release and beta are gone because of the requirement of rust to build them, which is not available in Jessie or Stretch. Please update your apt sources to use Firefox ESR instead.

WARNING: Aurora doesn't exist anymore.
« I am running Debian
and I want to install version
Sorry, this version is not available.
Please report any problem to the pkg-mozilla-maintainers@lists.alioth.debian.org list.

Last edited by erik2282; 07-05-2017 at 01:22 PM.
 
1 members found this post helpful.
Old 07-05-2017, 01:19 PM   #24
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
i delete it as u told me and tried that command
Quote:
apt-get update && apt-get upgrade
output:
Quote:
gelapir@Gelapir:~$ sudo apt-get update && apt-get upgrade
Ign http://ftp.debian.org jessie InRelease
Hit http://ftp.debian.org jessie-updates InRelease
Ign http://mirrors.kernel.org jessie InRelease
Hit http://ftp.debian.org jessie-backports InRelease
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.debian.org jessie Release.gpg
Hit http://mirrors.kernel.org jessie-updates InRelease
Get:1 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [8,392 B]
Hit http://mirrors.kernel.org jessie Release.gpg
Get:2 http://ftp.debian.org jessie-updates/non-free amd64 Packages/DiffIndex [736 B]
Get:3 http://mirrors.kernel.org jessie-updates/main Sources [15.7 kB]
Get:4 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3,196 B]
Get:5 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Hit http://ftp.debian.org jessie Release
Get:6 http://ftp.debian.org jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]
Get:7 http://mirrors.kernel.org jessie-updates/main amd64 Packages/DiffIndex [8,392 B]
Get:8 http://ftp.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [24.6 kB]
Get:9 http://mirrors.kernel.org jessie-updates/main Translation-en/DiffIndex [3,196 B]
Get:10 http://ftp.debian.org jessie-backports/non-free amd64 Packages/DiffIndex [22.4 kB]
Hit http://mirrors.kernel.org jessie Release
Get:11 http://ftp.debian.org jessie-backports/contrib Translation-en/DiffIndex [6,976 B]
Get:12 http://ftp.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]
Get:13 http://ftp.debian.org jessie-backports/non-free Translation-en/DiffIndex [16.7 kB]
Hit http://ftp.debian.org jessie-updates/contrib amd64 Packages
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Get:14 http://mirrors.kernel.org jessie/main Sources [7,055 kB]
Get:15 http://mirrors.kernel.org jessie/main amd64 Packages [6,790 kB]
Hit http://security.debian.org jessie/updates/main Sources
Hit http://ftp.debian.org jessie/main amd64 Packages
Hit http://ftp.debian.org jessie/contrib amd64 Packages
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://ftp.debian.org jessie/non-free amd64 Packages
Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://ftp.debian.org jessie/main Translation-en
Hit http://ftp.debian.org jessie/non-free Translation-en
Hit http://security.debian.org jessie/updates/non-free amd64 Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://security.debian.org jessie/updates/non-free Translation-en
Get:16 http://mirrors.kernel.org jessie/main Translation-en [4,583 kB]
Fetched 11.5 MB in 11s (1,005 kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://security.debian.org/ jessie/updates/main amd64 Packages (/var/lib/apt/lists/security.debian.org_dists_jessie_updates_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
 
Old 07-05-2017, 01:32 PM   #25
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Rep: Reputation: 229Reputation: 229Reputation: 229
Ok. Yes so you also have duplicate entries. Your sources list needs to be cleaned up. Do you have a need for downloading the source stuff? If not, you can have everything condensed into 4 lines like this:
Code:
deb http://ftp.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free

# Backports
deb http://ftp.debian.org/debian/ jessie-backports main contrib non-free
 
1 members found this post helpful.
Old 07-05-2017, 01:37 PM   #26
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
ok i will change my source list with that:

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

# Backports
deb http://ftp.debian.org/debian/ jessie-backports main contrib non-free
which u provide me right? and after will run apt-get update && apt-get upgrade
 
Old 07-05-2017, 01:39 PM   #27
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by THE PHANTOM View Post
which u provide me right? and after will run apt-get update && apt-get upgrade
Yes sir.
 
Old 07-05-2017, 01:44 PM   #28
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
Thanks. i did it and uotput is that:

Quote:
gelapir@Gelapir:~$ sudo nano /etc/apt/sources.list
[sudo] password for gelapir:
gelapir@Gelapir:~$ sudo apt-get update && apt-get upgrade
Ign http://ftp.debian.org jessie InRelease
Hit http://ftp.debian.org jessie-updates InRelease
Hit http://ftp.debian.org jessie-backports InRelease
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.debian.org jessie Release.gpg
Hit http://ftp.debian.org jessie Release
Get:1 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [8,392 B]
Hit http://ftp.debian.org jessie-updates/contrib amd64 Packages
Get:2 http://ftp.debian.org jessie-updates/non-free amd64 Packages/DiffIndex [736 B]
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Get:3 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3,196 B]
Get:4 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Get:5 http://ftp.debian.org jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]
Get:6 http://ftp.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [24.6 kB]
Get:7 http://ftp.debian.org jessie-backports/non-free amd64 Packages/DiffIndex [22.4 kB]
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://security.debian.org jessie/updates/non-free amd64 Packages
Get:8 http://ftp.debian.org jessie-backports/contrib Translation-en/DiffIndex [6,976 B]
Get:9 http://ftp.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]
Get:10 http://ftp.debian.org jessie-backports/non-free Translation-en/DiffIndex [16.7 kB]
Hit http://ftp.debian.org jessie/main amd64 Packages
Hit http://ftp.debian.org jessie/contrib amd64 Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://ftp.debian.org jessie/non-free amd64 Packages
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Hit http://ftp.debian.org jessie/non-free Translation-en
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit http://security.debian.org jessie/updates/main amd64 Packages
Fetched 139 kB in 6s (22.5 kB/s)
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
what is that last one E:
 
Old 07-05-2017, 01:50 PM   #29
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Rep: Reputation: 229Reputation: 229Reputation: 229
Try running these commands:

Code:
# apt-get autoclean

# apt-get clean

# apt-get update && apt-get upgrade
Also you dont happen to be running apt in another terminal or have the gui software package open do you?

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

Original Poster
Rep: Reputation: Disabled
also i have one question: what should i do most that my system keep always updated? what commands or methods u advice me sir? Thanks for help and yout time and sorry for disturbing u.
 
  


Reply



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 03:58 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
Open Source Consulting | Domain Registration