apt-get update on a debian squeeze failed

Help with issues regarding installation of Debian

apt-get update on a debian squeeze failed

Postby newty » 2019-07-18 12:43

Hi All,

I need to do an apt-get update on a debian squeeze (6 - very old I know but I can't upgrade it for now for technical reasons) in order to install curl and jpegtran

I modified the file /etc/apt/sources.list :

deb http://archive.debian.org//debian squeeze main contrib non-free
deb http://archive.debian.org/debian-security/ squeeze/updates main non-free contrib

and did :

apt-get -o Acquire::Check-Valid-Until=false update

But I have the following errors :

Err http://archive.debian.org squeeze Release.gpg
Could not resolve 'archive.debian.org'
Err http://archive.debian.org//debian/ squeeze/contrib Translation-en
Could not resolve 'archive.debian.org'
Err http://archive.debian.org//debian/ squeeze/main Translation-en
Could not resolve 'archive.debian.org'
Err http://archive.debian.org//debian/ squeeze/non-free Translation-en
Could not resolve 'archive.debian.org'
Err http://archive.debian.org squeeze/updates Release.gpg
Could not resolve 'archive.debian.org'
Err http://archive.debian.org/debian-security/ squeeze/updates/contrib Translation-en
Could not resolve 'archive.debian.org'
Err http://archive.debian.org/debian-security/ squeeze/updates/main Translation-en
Could not resolve 'archive.debian.org'
Err http://archive.debian.org/debian-security/ squeeze/updates/non-free Translation-en
Could not resolve 'archive.debian.org'
Reading package lists... Done
W: Failed to fetch http://archive.debian.org//debian/dists ... elease.gpg Could not resolve 'archive.debian.org'
W: Failed to fetch http://archive.debian.org//debian/dists ... tion-en.gz Could not resolve 'archive.debian.org'
W: Failed to fetch http://archive.debian.org//debian/dists ... tion-en.gz Could not resolve 'archive.debian.org'
W: Failed to fetch http://archive.debian.org//debian/dists ... tion-en.gz Could not resolve 'archive.debian.org'
W: Failed to fetch http://archive.debian.org/debian-securi ... elease.gpg Could not resolve 'archive.debian.org'
W: Failed to fetch http://archive.debian.org/debian-securi ... tion-en.gz Could not resolve 'archive.debian.org'
W: Failed to fetch http://archive.debian.org/debian-securi ... tion-en.gz Could not resolve 'archive.debian.org'
W: Failed to fetch http://archive.debian.org/debian-securi ... tion-en.gz Could not resolve 'archive.debian.org'
W: Some index files failed to download, they have been ignored, or old ones used instead.

Can someone help me ? I don't know what do do in order to fix it.

Thank you for your help :wink:

Best regards,
newty
 
Posts: 8
Joined: 2019-07-18 12:34

Re: apt-get update on a debian squeeze failed

Postby eor2004 » 2019-07-18 12:54

Hi, Debian squeeze is EOL, more info click on the link: https://www.debian.org/News/2016/20160212

Good luck!
OS: Debian 10 Buster 64-bit DE: MATE 1.20 CPU: AMD Phenom II X4 925 @ 2.8GHZ RAM: 8GB CORSAIR XMS2 PC2-6400U DDR2 (CM2X2048-6400C5C) GPU: ATI Radeon HD 3200 Mobo: Gigabyte GA-MA78GPM-DS2H HDD: Hitachi 2TB (HUA723020ALA641) 7200RPM
User avatar
eor2004
 
Posts: 219
Joined: 2013-10-01 22:49
Location: Puerto Rico

Re: apt-get update on a debian squeeze failed

Postby newty » 2019-07-18 13:16

Hello,

I know that it's end of like but I try to find a solution without doing an upgrade. I have no other choice for now.

Thank for those who can help :)
newty
 
Posts: 8
Joined: 2019-07-18 12:34

Re: apt-get update on a debian squeeze failed

Postby GarryRicketson » 2019-07-18 13:39

There are no new updates available for it, no packages are maintained:
End of Life, dead,.... the base system is still available in Archives, but nothing more.
===============edited===========
Was wrong here, "curl" is available, but "jpegtran" does not seem to be available
================= end edit ========
The source code for both "Curl" and "jpegtran" is available for download on a few sites,
The only option you have would be to try downloading the versions you want to use, and compile them for your system, build the package your self.
I suppose, another option might be:
https://wiki.debian.org/LTS/
Companies using Debian who are benefitting from this project are encouraged to either help directly or contribute financially. The number of packages which is properly supported depends directly on the level of support that we get.

Contact someone at LTS, MONEY$$$ talks, you might find someone that is willing and able to compile the programs, and make a package for you.
After all said and done, it would be more economical, to just copy/save and store all the data that is important to you, install a new system that is current and up-to-date. Restore the data you saved to the appropriate places on the new system.
If your are not technically able to do these things, hire some one that is.
Last edited by GarryRicketson on 2019-07-19 02:22, edited 1 time in total.
User avatar
GarryRicketson
 
Posts: 5872
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: apt-get update on a debian squeeze failed

Postby GarryRicketson » 2019-07-18 13:48

We are willing to try to help, but:
(6 - very old I know but I can't upgrade it for now for technical reasons)

This is to vague, if you at least took the time to explain the "technical reasons" you can not "upgrade", besides, Debian 6 is so old, upgrading is not really a option, installing a new system is the only realistic option.
Thank for those who can help :)

Your welcome, but with out better details, well,
You don't give enough details, so you don't get any help. You don't tell us if this is a server or a PC , or what,... nothing, there are ways to migrate all of the data from a old outdated system, to a new , freshly installed system. That would be your best approach to this.
User avatar
GarryRicketson
 
Posts: 5872
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: apt-get update on a debian squeeze failed

Postby reinob » 2019-07-18 18:22

newty wrote:
Code: Select all
Err http://archive.debian.org squeeze Release.gpg
  Could not resolve 'archive.debian.org'



Your resolver isn't working, or wasn't working when you tried.

Check your /etc/resolv.conf and fix if necessary. You can post the output of "dig archive.debian.org", and/or "host archive.debian.org"
reinob
 
Posts: 900
Joined: 2014-06-30 11:42

Re: apt-get update on a debian squeeze failed

Postby GarryRicketson » 2019-07-18 19:05

It may be the /etc/apt/sources.list needs to be edited, according to here:
https://www.debian.org/distrib/archive
debian-archive

If you need to access one of the old distributions of Debian, you can find them at the Debian Archives, http://archive.debian.org/debian/.
Code: Select all
http://archive.debian.org/debian/


There are some additional examples, of what the sources.list file should be, what the OP is using:
Code: Select all
deb http://archive.debian.org//debian squeeze main contrib non-free

Can not work, the " // " is not correct, it should be just / .
This:
Code: Select all
http://archive.debian.org squeeze Release.gpg

can not work, it should be something like:
Code: Select all
deb http://archive.debian.org/debian/ squeeze

(I don't know if there is such a thing as "Release.gpg".
User avatar
GarryRicketson
 
Posts: 5872
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: apt-get update on a debian squeeze failed

Postby newty » 2019-07-18 22:39

Thank you for your help, I will check that.
newty
 
Posts: 8
Joined: 2019-07-18 12:34

Re: apt-get update on a debian squeeze failed

Postby GarryRicketson » 2019-07-19 00:27

These should work for you, they did for me:
Code: Select all
deb http://archive.debian.org/debian/ squeeze main
deb http://archive.debian.org/debian/ squeeze contrib main non-free

Code: Select all
Need to get 25.2 kB of archives.
After this operation, 123 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  sl
Install these packages without verification [y/N]? y
Get:1 http://archive.debian.org/debian/ squeeze/main sl i386 3.03-16 [25.2 kB]
Fetched 25.2 kB in 1s (21.5 kB/s)                     
Selecting previously deselected package sl.
(Reading database ... 120258 files and directories currently installed.)
Unpacking sl (from .../archives/sl_3.03-16_i386.deb) ...
Processing triggers for man-db ...
Setting up sl (3.03-16) ...
root@debian:/etc/apt# exit
exit
bryan@debian:/etc/apt$ lsb_release -a
No LSB modules are available.
Distributor ID:   Debian
Description:   Debian GNU/Linux 6.0.7 (squeeze)
Release:   6.0.7
Codename:   squeeze
bryan@debian:/etc/apt$
=============================
deb http://archive.debian.org/debian/ squeeze main
deb http://archive.debian.org/debian/ squeeze contrib main non-free

And Curl is available:
Code: Select all
root@debian:/home/bryan# apt-get install curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libcurl3 libssh2-1
The following NEW packages will be installed:
  curl libcurl3 libssh2-1
0 upgraded, 3 newly installed, 0 to remove and 141 not upgraded.
Need to get 587 kB of archives.
After this operation, 1,094 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  libssh2-1 libcurl3 curl
Install these packages without verification [y/N]? y
Get:1 http://archive.debian.org/debian/ squeeze/main libssh2-1 i386 1.2.6-1 [77.2 kB]
Get:2 http://archive.debian.org/debian/ squeeze/main libcurl3 i386 7.21.0-2.1+squeeze8 [282 kB]
Get:3 http://archive.debian.org/debian/ squeeze/main curl i386 7.21.0-2.1+squeeze8 [228 kB]
Fetched 587 kB in 12s (46.9 kB/s)                                             
Selecting previously deselected package libssh2-1.
(Reading database ... 120289 files and directories currently installed.)
Unpacking libssh2-1 (from .../libssh2-1_1.2.6-1_i386.deb) ...
Selecting previously deselected package libcurl3.
Unpacking libcurl3 (from .../libcurl3_7.21.0-2.1+squeeze8_i386.deb) ...
Selecting previously deselected package curl.
Unpacking curl (from .../curl_7.21.0-2.1+squeeze8_i386.deb) ...
Processing triggers for man-db ...
Setting up libssh2-1 (1.2.6-1) ...
Setting up libcurl3 (7.21.0-2.1+squeeze8) ...
Setting up curl (7.21.0-2.1+squeeze8) ...
root@debian:/home/bryan#
 

Image
"JPEGTRAN", was not available to me, but I did not try using the "contrib non free"
Code: Select all
deb http://archive.debian.org/debian/ squeeze contrib main non-free

I try to avoid using those my self.
Still , after all said and done, you would be much better off installing a more uptodate system.
There are NO security updates for Debian squeeze, and there will be no new updates, for example if you want or need a newer version of "curl", there will not be one packaged for Debian 6. All though it is possible if you do it your self.
User avatar
GarryRicketson
 
Posts: 5872
Joined: 2015-01-20 22:16
Location: Durango, Mexico


Return to Installation

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable