Removing SDL library

Hi

Kindly I want to know how I remove sdl library from jetson nano

I know this is how to install by this command

sudo apt-get install libsdl1.2-dev

but I want to know how to remove it completely and install again

Best

hello a.elhanashi,

may I have more details about why you would like to remove SDL library?
there’s usually dependency while installing a component, you might enable commands to remove it safely.
for example, sudo apt autoremove

Hi

Thanks for your reply

Infact i have a problem of using this library . I want to remove it and install back. I tried to remove it by this command

sudo apt-get autoremove libsdl1.2-dev

but i had error

jetsonnano3@jetsonnano3-desktop:~$ sudo apt-get autoremove libsdl1.2-dev
[sudo] password for jetsonnano3:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
libcaca-dev libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev
liblzma-dev libpng-dev libpng-tools libpulse-dev libsdl-gfx1.2-5
libsdl1.2-dev libslang2-dev libtiff-dev libtiff5-dev libtiffxx5 libwebp-dev
0 upgraded, 0 newly installed, 16 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 12.5 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 169118 files and directories currently installed.
Removing libsdl1.2-dev (1.2.15+dfsg2-0.1ubuntu0.1) …
dpkg: error processing package libsdl1.2-dev (–remove):
cannot remove ‘/usr/share/doc/libsdl1.2-dev/docs/html/sdlactiveevent.html’: Bad message
Removing libcaca-dev (0.99.beta19-2ubuntu0.18.04.1)
Removing libtiff-dev (4.0.9-5ubuntu0.3) …
Removing libtiff5-dev:arm64 (4.0.9-5ubuntu0.3)
Removing libjbig-dev:arm64 (2.1-3.1build1) …
Removing libjpeg-dev:arm64 (8c-2ubuntu8) …
Removing libjpeg8-dev:arm64 (8c-2ubuntu8) …
Removing libjpeg-turbo8-dev:arm64 (1.5.2-0ubuntu5.18.04.4) …
Removing liblzma-dev:arm64 (5.2.2-1.3) …
Removing libslang2-dev:arm64 (2.3.1a-3ubuntu1) …
Removing libpng-dev:arm64 (1.6.34-1ubuntu0.18.04.2) …
Removing libpng-tools (1.6.34-1ubuntu0.18.04.2) …
Removing libpulse-dev:arm64 (1:11.1-1ubuntu7.10) …
Removing libsdl-gfx1.2-5:arm64 (2.0.25-9) …
Removing libtiffxx5:arm64 (4.0.9-5ubuntu0.3) …
Removing libwebp-dev:arm64 (0.6.1-2) …
Errors were encountered while processing:
libsdl1.2-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried to install back by this command

sudo apt-get install libsdl1.2dev

but i had these errors

jetsonnano3@jetsonnano3-desktop:~$ sudo apt-get install libsdl1.2dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libsdl1.2dev
E: Couldn’t find any package by glob ‘libsdl1.2dev’
E: Couldn’t find any package by regex ‘libsdl1.2dev’

also i tried to use this command

sudo apt-get install libsdl1.2debian

but i had these errors

Reading package lists… Done
Building dependency tree
Reading state information… Done
libsdl1.2debian is already the newest version (1.2.15+dfsg2-0.1ubuntu0.1).
The following packages will be REMOVED:
libsdl1.2-dev
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 2,745 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 168401 files and directories currently installed.)
Removing libsdl1.2-dev (1.2.15+dfsg2-0.1ubuntu0.1) …
dpkg: error processing package libsdl1.2-dev (–remove):
cannot remove ‘/usr/share/doc/libsdl1.2-dev/docs/html/sdlactiveevent.html’: Bad message
Errors were encountered while processing:
libsdl1.2-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)

Kindly, looking for your support to remove error of using sdl lib

Hi

Thanks for your reply

Infact i have a problem of using this library . I want to remove it and install back. I tried to remove it by this command

sudo apt-get autoremove libsdl1.2-dev

but i had error

jetsonnano3@jetsonnano3-desktop:~$ sudo apt-get autoremove libsdl1.2-dev
[sudo] password for jetsonnano3:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
libcaca-dev libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev
liblzma-dev libpng-dev libpng-tools libpulse-dev libsdl-gfx1.2-5
libsdl1.2-dev libslang2-dev libtiff-dev libtiff5-dev libtiffxx5 libwebp-dev
0 upgraded, 0 newly installed, 16 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 12.5 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 169118 files and directories currently installed.
Removing libsdl1.2-dev (1.2.15+dfsg2-0.1ubuntu0.1) …
dpkg: error processing package libsdl1.2-dev (–remove):
cannot remove ‘/usr/share/doc/libsdl1.2-dev/docs/html/sdlactiveevent.html’: Bad message
Removing libcaca-dev (0.99.beta19-2ubuntu0.18.04.1)
Removing libtiff-dev (4.0.9-5ubuntu0.3) …
Removing libtiff5-dev:arm64 (4.0.9-5ubuntu0.3)
Removing libjbig-dev:arm64 (2.1-3.1build1) …
Removing libjpeg-dev:arm64 (8c-2ubuntu8) …
Removing libjpeg8-dev:arm64 (8c-2ubuntu8) …
Removing libjpeg-turbo8-dev:arm64 (1.5.2-0ubuntu5.18.04.4) …
Removing liblzma-dev:arm64 (5.2.2-1.3) …
Removing libslang2-dev:arm64 (2.3.1a-3ubuntu1) …
Removing libpng-dev:arm64 (1.6.34-1ubuntu0.18.04.2) …
Removing libpng-tools (1.6.34-1ubuntu0.18.04.2) …
Removing libpulse-dev:arm64 (1:11.1-1ubuntu7.10) …
Removing libsdl-gfx1.2-5:arm64 (2.0.25-9) …
Removing libtiffxx5:arm64 (4.0.9-5ubuntu0.3) …
Removing libwebp-dev:arm64 (0.6.1-2) …
Errors were encountered while processing:
libsdl1.2-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried to install back by this command

sudo apt-get install libsdl1.2dev

but i had these errors

jetsonnano3@jetsonnano3-desktop:~$ sudo apt-get install libsdl1.2dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libsdl1.2dev
E: Couldn’t find any package by glob ‘libsdl1.2dev’
E: Couldn’t find any package by regex ‘libsdl1.2dev’

also i tried to use this command

sudo apt-get install libsdl1.2debian

but i had these errors

Reading package lists… Done
Building dependency tree
Reading state information… Done
libsdl1.2debian is already the newest version (1.2.15+dfsg2-0.1ubuntu0.1).
The following packages will be REMOVED:
libsdl1.2-dev
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 2,745 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 168401 files and directories currently installed.)
Removing libsdl1.2-dev (1.2.15+dfsg2-0.1ubuntu0.1) …
dpkg: error processing package libsdl1.2-dev (–remove):
cannot remove ‘/usr/share/doc/libsdl1.2-dev/docs/html/sdlactiveevent.html’: Bad message
Errors were encountered while processing:
libsdl1.2-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)

Kindly, looking for your support to remove error of using sdl lib

@a.elhanashi

to reinstall a package you can do:

sudo apt-get install --reinstall libsdl1.2-dev

Hi

I tried but i am still getting the error as below

jetsonnano3@jetsonnano3-desktop:~$ sudo apt-get install --reinstall libsdl1.2-dev
[sudo] password for jetsonnano3:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libcaca-dev libpng-dev libpng-tools libpulse-dev libslang2-dev
The following NEW packages will be installed:
libcaca-dev libpng-dev libpng-tools libpulse-dev libslang2-dev
0 upgraded, 5 newly installed, 1 reinstalled, 0 to remove and 5 not upgraded.
1 not fully installed or removed.
Need to get 2,047 kB of archives.
After this operation, 6,466 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 Index of /ubuntu-ports bionic-updates/main arm64 libpng-dev arm64 1.6.34-1ubuntu0.18.04.2 [165 kB]
Get:2 Index of /ubuntu-ports bionic/main arm64 libslang2-dev arm64 2.3.1a-3ubuntu1 [356 kB]
Get:3 Index of /ubuntu-ports bionic-updates/main arm64 libcaca-dev arm64 0.99.beta19-2ubuntu0.18.04.1 [740 kB]
Get:4 Index of /ubuntu-ports bionic-updates/main arm64 libpulse-dev arm64 1:11.1-1ubuntu7.10 [81.5 kB]
Get:5 Index of /ubuntu-ports bionic-updates/main arm64 libsdl1.2-dev arm64 1.2.15+dfsg2-0.1ubuntu0.1 [681 kB]
Get:6 Index of /ubuntu-ports bionic-updates/main arm64 libpng-tools arm64 1.6.34-1ubuntu0.18.04.2 [23.5 kB]
Fetched 2,047 kB in 1s (2,371 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libpng-dev:arm64.
(Reading database … 168401 files and directories currently installed.)
Preparing to unpack …/0-libpng-dev_1.6.34-1ubuntu0.18.04.2_arm64.deb …
Unpacking libpng-dev:arm64 (1.6.34-1ubuntu0.18.04.2) …
Selecting previously unselected package libslang2-dev:arm64.
Preparing to unpack …/1-libslang2-dev_2.3.1a-3ubuntu1_arm64.deb …
Unpacking libslang2-dev:arm64 (2.3.1a-3ubuntu1) …
Selecting previously unselected package libcaca-dev
Preparing to unpack …/2-libcaca-dev_0.99.beta19-2ubuntu0.18.04.1_arm64.deb .
Unpacking libcaca-dev (0.99.beta19-2ubuntu0.18.04.1) .
Selecting previously unselected package libpulse-dev:arm64.
Preparing to unpack …/3-libpulse-dev_1%3a11.1-1ubuntu7.10_arm64.deb …
Unpacking libpulse-dev:arm64 (1:11.1-1ubuntu7.10) …
Preparing to unpack …/4-libsdl1.2-dev_1.2.15+dfsg2-0.1ubuntu0.1_arm64.deb …
Unpacking libsdl1.2-dev (1.2.15+dfsg2-0.1ubuntu0.1) over (1.2.15+dfsg2-0.1ubuntu0.1) …
dpkg: error processing archive /tmp/apt-dpkg-install-16MIGM/4-libsdl1.2-dev_1.2.15+dfsg2-0.1ubuntu0.1_arm64.deb (–unpack):
unable to stat ‘./usr/share/doc/libsdl1.2-dev/docs/html/guide.html’ (which I was about to install): Bad message
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package libpng-tools.
Preparing to unpack …/5-libpng-tools_1.6.34-1ubuntu0.18.04.2_arm64.deb …
Unpacking libpng-tools (1.6.34-1ubuntu0.18.04.2) …
Errors were encountered while processing:
/tmp/apt-dpkg-install-16MIGM/4-libsdl1.2-dev_1.2.15+dfsg2-0.1ubuntu0.1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

@linuxdev

Can’t stat as root? Filesystem or disk issue you think? Ideas? I have never see that before.

Hi

Jetson nano is working properly just i have the issue with this sdl libraray

any idea how to solve it?

I’m not sure. I’ve tagged @linuxdev who might have seen that happen before, but I haven’t seen that particular error.