curl keep deleting

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
neaman_ahmed
Posts: 5
Joined: Fri Feb 19, 2021 4:28 pm

curl keep deleting

Post by neaman_ahmed »

I am experiencing , curl keep deleting from dietpi and I have to install everyday
User avatar
Joulinar
Posts: 3706
Joined: Sat Nov 16, 2019 12:49 am

Re: curl keep deleting

Post by Joulinar »

Hi,

can you be a little bit more specific. Do you mean curl executable is diapering on daily basis? Usually there is nothing scheduled on DietPi to clean/remove software. Do you have anything scheduled? What version of DietPi are you running? Do you have a time slot you could pin on which the executable is removed?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
neaman_ahmed
Posts: 5
Joined: Fri Feb 19, 2021 4:28 pm

Re: curl keep deleting

Post by neaman_ahmed »

-----------------------------------------------------
DietPi v6.34.3 : 12:58 - Sat 02/20/21
-----------------------------------------------------
- Device model : RPi CM 3+ (armv7l)
- Uptime : up 23 hours, 2 minutes
- CPU temp : 51'C : 123'F (Running warm, but safe)
- FQDN/hostname : DietPi
- LAN IP : 10.64.216.23 (eth0)
- WAN IP : /boot/dietpi/func/dietpi-banner: line 215: curl: command not found
- Freespace (RootFS) : 11G
- Freespace (userdata) : 11G
- Weather (wttr.in) : /boot/dietpi/func/dietpi-banner: line 223: curl: command not found
- MOTD : Please help testing DietPi beta v7.0.0:
https://github.com/MichaIng/DietPi/issues/4121
-----------------------------------------------------

DietPi Team : MichaIng (lead), Daniel Knight (founder), Joulinar (support)
Image : DietPi Core Team (pre-image: Raspbian Lite)
Web : https://dietpi.com | https://twitter.com/DietPi_
Donate : https://dietpi.com/#donate
DietPi Hosting : Powered by https://myvirtualserver.com

###################################################################################################
Just 10 minutes ago i used curl now it is gone. I also have screen shot attached. Couple of time running dietpi-software , i faced errors and get to command line install curl and retry it work fine. One more thing the login screen not showing correct weather of Dubai .
Attachments
curl.JPG
User avatar
Joulinar
Posts: 3706
Joined: Sat Nov 16, 2019 12:49 am

Re: curl keep deleting

Post by Joulinar »

means it's going to disappear randomly and not at a specefic moment. correct?

Can you check installation status once the issue happen dpkg -l curl
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
neaman_ahmed
Posts: 5
Joined: Fri Feb 19, 2021 4:28 pm

Re: curl keep deleting

Post by neaman_ahmed »

root@DietPi:~# dpkg -l curl
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un curl <none> <none> (no description available)
root@DietPi:~#
User avatar
MichaIng
Site Admin
Posts: 2613
Joined: Sat Nov 18, 2017 6:21 pm

Re: curl keep deleting

Post by MichaIng »

Can you please show the following:

Code: Select all

grep '^Package: curl' /var/lib/dpkg/status
which curl
hash -d
which curl
ls -l /usr/bin/curl
dmesg -l emerg,alert,crit,err
neaman_ahmed
Posts: 5
Joined: Fri Feb 19, 2021 4:28 pm

Re: curl keep deleting

Post by neaman_ahmed »

grep '^Package: curl' /var/lib/dpkg/status
which curl
hash -d
ck: 3: hash: Illegal option -d
which curl
ls -l /usr/bin/curl
ls: cannot access '/usr/bin/curl': No such file or directory
dmesg -l emerg,alert,crit,err
[ 4.731134] vc_sm_cma_vchi_init: failed to open VCHI service (-1)
[ 4.731167] [vc_sm_connected_init]: failed to initialize shared memory service
[ 4.792935] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1)
[ 1065.162770] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[ 1448.169067] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[ 1938.459489] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[ 2127.467669] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[43255.912205] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[43314.029965] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[43374.528937] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[74440.661697] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[82198.436698] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[97878.497797] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
User avatar
Joulinar
Posts: 3706
Joined: Sat Nov 16, 2019 12:49 am

Re: curl keep deleting

Post by Joulinar »

looks like the package was purged. Not sure how this could happen out of the box if not using apt purge curl
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2613
Joined: Sat Nov 18, 2017 6:21 pm

Re: curl keep deleting

Post by MichaIng »

Indeed, please install the package and run again through the commands:

Code: Select all

apt install curl
ck: 3: hash: Illegal option -d
Are you using bash shell, or a different one? Since hash is a bash builtin command that definitely supports the -d option to clear the command cache.
neaman_ahmed
Posts: 5
Joined: Fri Feb 19, 2021 4:28 pm

Re: curl keep deleting

Post by neaman_ahmed »

I always use bash
Post Reply