DietPi update hangs Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
seiko

DietPi update hangs

Post by seiko »

Hello All,

I have version 89 running.

I did a apt-get update and upgrade recently.

Since then DietPi update is not working.

Connection to files is made, reporting new version v90 available
Then get message
'waiting for apt-get update to finish: Please wait...
apt-cache database size:35476 KB
DietPi processing

indefinitely

How can I resolve this ?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: DietPi update hangs

Post by Fourdee »

seiko wrote: 'waiting for apt-get update to finish: Please wait...
apt-cache database size:35476 KB
DietPi processing

indefinitely

How can I resolve this ?
DietPi automatically runs apt-get update every 7 days, and, if during installations that require additional apt sources.

Your issue will occur if DietPi is waiting for an apt-get update process to finish. For some reason, your apt-get update process doesnt finish, hence the wait.

Please can you try the following to clean and reset your apt cache:

Code: Select all

killall apt-get
apt-get clean
/DietPi/dietpi/dietpi-apt-get_update 2
Please be patient, depending on your network/sd speed etc, this process can take anything from 10seconds to 2+ minutes.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
seiko

Re: DietPi update hangs

Post by seiko »

Hey Fourdee,

Thx for quick reply.

Sorry to inform You that the problem persists.

Waited for about 20 minutes. WIFI dongle LED blinked continuously and rapidly all the time.

Aborted with ctrl+C.

Killall apt-get gives me 'apt-get: no process found'
'apt-get clean' displays no errors nor any other message

Only difference is that apt-cache size is now 16 KB.

Afterwards I did a apt-get update, which worked fine.

Regards,
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: DietPi update hangs

Post by Fourdee »

seiko wrote:Hey Fourdee,

Thx for quick reply.

Sorry to inform You that the problem persists.

Waited for about 20 minutes. WIFI dongle LED blinked continuously and rapidly all the time.

Aborted with ctrl+C.

Killall apt-get gives me 'apt-get: no process found'
'apt-get clean' displays no errors nor any other message

Only difference is that apt-cache size is now 16 KB.

Afterwards I did a apt-get update, which worked fine.

Regards,
Hi Seiko,

I've updated the code for this script.
Can you please run the following and report result:

Code: Select all

wget https://raw.githubusercontent.com/Fourdee/DietPi/testing/dietpi/dietpi-apt-get_update -O /DietPi/dietpi/dietpi-apt-get_update
killall apt-get &> /dev/null
killall dietpi-apt-get_update &> /dev/null
rm /DietPi/dietpi/.dietpi-apt-get_update
/DietPi/dietpi/dietpi-apt-get_update 1
If after 1-2 minutes there is no change to cache size, please ctrl+c and then the following:

Code: Select all

ls -lha /var/cache/apt
Let me know what the result is.

Also, could you send me a DietPi-Bugreport so I can check your settings:

Code: Select all

dietpi-bugreport
Please post your Reference CODE.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
seiko

Re: DietPi update hangs

Post by seiko »

Hello Fourdee,

Your new solution fixed the problem.

After running the script I executed a regular dietpi-update and now system is on v

Thx a lot.
seiko

Re: DietPi update hangs

Post by seiko »

Last line should read

... and now sytem is on v90
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: DietPi update hangs

Post by Fourdee »

seiko wrote:Hello Fourdee,

Your new solution fixed the problem.

After running the script I executed a regular dietpi-update and now system is on v

Thx a lot.
Hi Seiko,

Its great to hear your issue is resolved, and, thanks for letting me know the results.

Kind Regards,
Dan
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply