Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Reviving a Jessie 8.8 machine after several years

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
austinbw113
Posts: 2
Joined: 2023-03-05 06:08

Reviving a Jessie 8.8 machine after several years

#1 Post by austinbw113 »

Hello,

I have a headless Debian server that's been offline since 2017 that I'd like to get updated and start using again. I'd love to get upgraded to Bullseye if it's realistic. But first I just want to get the applications and Jessie OS updating on their own. Bear with me, I was learning Linux circa 2017, but really haven't used it since 2017.

When I do an 'apt-get update'', I get a few lines that look like:

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ftp.us.debian.org jessie-updates InRelease: The following signatures were invalid: KEYEXPIRED 1668891673

1.) How do I get my keys updated so I can update applications again?

2.) Will I be able to upgrade OS to Bullseye without flashing a new image?

3.) Anything else I'm not thinking of?

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Reviving a Jessie 8.8 machine after several years

#2 Post by sunrat »

Jessie repos are moved to archive now. See viewtopic.php?p=768996
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

austinbw113
Posts: 2
Joined: 2023-03-05 06:08

Re: Reviving a Jessie 8.8 machine after several years

#3 Post by austinbw113 »

Thank you, I updated the repo URLs. Now when I run apt-get udpate, I see the below. It gets stuck on "100% waiting for headers" and never finishes. Any ideas?

apt-get update
Ign http://archive.debian.org jessie InRelease
Get:1 http://archive.debian.org jessie Release.gpg [2,420 B]
Hit http://archive.debian.org jessie Release
Ign http://archive.debian.org jessie Release
Ign http://archive.debian.org jessie/main Sources/DiffIndex
Ign http://archive.debian.org jessie/contrib Sources/DiffIndex
Ign http://archive.debian.org jessie/non-free Sources/DiffIndex
Ign http://archive.debian.org jessie/main amd64 Packages/DiffIndex
Ign http://archive.debian.org jessie/contrib amd64 Packages/DiffIndex
Ign http://archive.debian.org jessie/non-free amd64 Packages/DiffIndex
Hit http://archive.debian.org jessie/contrib Translation-en
Hit http://archive.debian.org jessie/main Translation-en
Hit http://archive.debian.org jessie/non-free Translation-en
Hit http://archive.debian.org jessie/main Sources
Hit http://archive.debian.org jessie/contrib Sources
Hit http://archive.debian.org jessie/non-free Sources
Hit http://archive.debian.org jessie/main amd64 Packages
Hit http://archive.debian.org jessie/contrib amd64 Packages
Hit http://archive.debian.org jessie/non-free amd64 Packages
Ign http://archive.debian.org jessie/contrib Translation-en_US
Ign http://archive.debian.org jessie/main Translation-en_US
Ign http://archive.debian.org jessie/non-free Translation-en_US
100% [Waiting for headers]

User avatar
mlocati
Posts: 5
Joined: 2023-03-27 08:38

Re: Reviving a Jessie 8.8 machine after several years

#4 Post by mlocati »

I also am stuck with this 100% [Waiting for headers] issue...

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: Reviving a Jessie 8.8 machine after several years

#5 Post by Hallvor »

You can try

Code: Select all

# apt-get clean && apt-get update
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
mlocati
Posts: 5
Joined: 2023-03-27 08:38

Re: Reviving a Jessie 8.8 machine after several years

#6 Post by mlocati »

@Hallvor Nope, apt-get clean doesn't help...

Here's what I do: first of all I start a docker container with

Code: Select all

docker run --rm -it debian:jessie bash
Inside that container I then have this session:

Code: Select all

$ echo 'deb http://archive.debian.org/debian/ jessie main non-free contrib' >/etc/apt/sources.list
$ echo 'deb-src http://archive.debian.org/debian/ jessie main non-free contrib' >>/etc/apt/sources.list
$ echo 'deb http://archive.debian.org/debian-security/ jessie/updates main non-free contrib' >>/etc/apt/sources.list
$ echo 'deb-src http://archive.debian.org/debian-security/ jessie/updates main non-free contrib' >>/etc/apt/sources.list

$ cat /etc/apt/sources.list
deb http://archive.debian.org/debian/ jessie main non-free contrib
deb-src http://archive.debian.org/debian/ jessie main non-free contrib
deb http://archive.debian.org/debian-security/ jessie/updates main non-free contrib
deb-src http://archive.debian.org/debian-security/ jessie/updates main non-free contrib

$ apt-get clean
E: Could not open lock file /var/cache/apt/archives/lock - open (2: No such file or directory)
E: Unable to lock the download directory

$ time apt-get update
Ign http://archive.debian.org jessie InRelease
Get:1 http://archive.debian.org jessie/updates InRelease [44.9 kB]
Get:2 http://archive.debian.org jessie Release.gpg [2420 B]
Get:3 http://archive.debian.org jessie/updates/main Sources [473 kB]
Get:4 http://archive.debian.org jessie/updates/non-free Sources [1736 B]
Get:5 http://archive.debian.org jessie/updates/contrib Sources [1298 B]
Get:6 http://archive.debian.org jessie/updates/main amd64 Packages [992 kB]
Get:7 http://archive.debian.org jessie/updates/non-free amd64 Packages [4950 B]
Get:8 http://archive.debian.org jessie/updates/contrib amd64 Packages [2389 B]
Get:9 http://archive.debian.org jessie Release [148 kB]
Ign http://archive.debian.org jessie Release
Get:10 http://archive.debian.org jessie/main Sources [9169 kB]
Get:11 http://archive.debian.org jessie/non-free Sources [119 kB]
Get:12 http://archive.debian.org jessie/contrib Sources [58.9 kB]
Get:13 http://archive.debian.org jessie/main amd64 Packages [9098 kB]
Get:14 http://archive.debian.org jessie/non-free amd64 Packages [101 kB]
Get:15 http://archive.debian.org jessie/contrib amd64 Packages [59.2 kB]
Fetched 20.3 MB in 28min 13s (12.0 kB/s)
Reading package lists... Done
W: GPG error: http://archive.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717

real    28m19.646s
user    0m8.940s
sys     0m4.325s
So, I think that the problem is only that archive.debian.org is ways too slow to be used (half an hour only for an apt-get update)...

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: Reviving a Jessie 8.8 machine after several years

#7 Post by Hallvor »

The archive may be slow, but you did not run the command correctly, so it's no wonder it didn't work.

The error indicates that there was another instance of apt running at the same time as you tried apt-get clean, so the command never ran.

Secondly, the command has to be run as root or sudo, not as regular user. (Or it won't work.)

Perhaps try a different mirror, like this: ftp.it.debian.org/debian/

https://www.debian.org/mirror/list
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
mlocati
Posts: 5
Joined: 2023-03-27 08:38

Re: Reviving a Jessie 8.8 machine after several years

#8 Post by mlocati »

@Hallvor the previous post of mine was written by using a Docker image, where root is the default user (so, no need to run sudo, and indeed the execution succeeded):

Code: Select all

$ docker run --rm -it debian:jessie whoami
root
About the apt-get clean error: the error isn't caused by concurrency (no other processes were running when I wrote the above commands of mine).
The apt-get clean failed because of the error I reported above:

Code: Select all

var/cache/apt/archives/lock - open (2: No such file or directory)
The cause is that the docker container is by default already clean, and there's nothing in the apt cache directory:

Code: Select all

$ docker run --rm -it debian:jessie ls -al /var/cache/apt
total 8
drwxr-xr-x 2 root root 4096 Mar 26  2021 .
drwxr-xr-x 5 root root 4096 Mar 26  2021 ..
Last edited by mlocati on 2023-04-11 07:35, edited 1 time in total.

User avatar
mlocati
Posts: 5
Joined: 2023-03-27 08:38

Re: Reviving a Jessie 8.8 machine after several years

#9 Post by mlocati »

@Hallvor you pointed me to the right direction!
Archive mirrors are listed at https://www.debian.org/distrib/archive.en.html (https://www.debian.org/mirror/list is only for the currently supported deb packages).

Thank you! ❤️

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: Reviving a Jessie 8.8 machine after several years

#10 Post by Hallvor »

I am glad you sorted it out. I look forward to visiting your beautiful country later this year.
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
mlocati
Posts: 5
Joined: 2023-03-27 08:38

Re: Reviving a Jessie 8.8 machine after several years

#11 Post by mlocati »

I also hope that one day I'll manage to visit your wonderful country!

Post Reply