Can't remove resin web server - linux

From the day i installed resin in my ubuntu,i couldn't b able install any packages nor i could be able to remove it.I'm getting the similar error in both the cases
$sudo apt-get remove resin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
resin
0 upgraded, 0 newly installed, 1 to remove and 19 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 259061 files and directories currently installed.)
Removing resin ...
Removing any system startup links for /etc/init.d/resin ...
/etc/rc0.d/K10resin
/etc/rc1.d/K10resin
/etc/rc2.d/S90resin
/etc/rc3.d/S90resin
/etc/rc4.d/S90resin
/etc/rc5.d/S90resin
/etc/rc6.d/K10resin
/usr/sbin/invoke-rc.d: 446: /etc/init.d/resin: not found
invoke-rc.d: initscript resin, action "stop" failed.
dpkg: error processing resin (--remove):
subprocess installed pre-removal script returned error exit status 127
/usr/sbin/invoke-rc.d: 446: /etc/init.d/resin: not found
invoke-rc.d: initscript resin, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
resin
E: Sub-process /usr/bin/dpkg returned an error code (1)

Not sure if you can actually remove the Web Server but you can "not use it". I read somewhere that you can use Resin with Apache or other Web Server.

Have a look at this thread on the Ubuntu forums; it appears to match the question you're asking. Try the answer contained there and see if that fixes your issue.

Related

dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing:

I am participating kaggle OTTO Recommendation System competition.
I am trying many other code. I see high ranker use cudf library.
so I want to try it, but I face many errors...
I will show you from the beginning. please help me...
E: Unmet dependencies. Try ‘apt —-fix-broken install’ with no packages (or specify & solution)
when I tried to fix the broken install I get this
dpkg: error processing archive /var/cuda-repo-ubuntu1804-11-4-local/./nvidia-compute-utils-470_470.57.02-0ubuntu1_amd64.deb (--unpack):
unable to make backup link of './usr/bin/nvidia-cuda-mps-control' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../nvidia-utils-470_470.57.02-0ubuntu1_amd64.deb ...
Unpacking nvidia-utils-470 (470.57.02-0ubuntu1) ...
dpkg: error processing archive /var/cuda-repo-ubuntu1804-11-4-local/./nvidia-utils-470_470.57.02-0ubuntu1_amd64.deb (--unpack):
unable to make backup link of './usr/bin/nvidia-debugdump' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cuda-repo-ubuntu1804-11-4-local/./nvidia-compute-utils-470_470.57.02-0ubuntu1_amd64.deb
/var/cuda-repo-ubuntu1804-11-4-local/./nvidia-utils-470_470.57.02-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I search this error and I find something solution.
dpkg-dep error: paste subprocess was killed by signal(Broken Pipe) Ubuntu WSL2
sudo dpkg -i --force-overwrite /var/cuda-repo-ubuntu1804-11-4-local/./nvidia-compute-utils-470_470.57.02-0ubuntu1_amd64.deb
when I tried to this I get error... this..
(Reading database ... 31 files and directories currently installed.)
Preparing to unpack .../nvidia-compute-utils-470_470.57.02-0ubuntu1_amd64.deb ...
Unpacking nvidia-compute-utils-470 (470.57.02-0ubuntu1) ...
dpkg: error processing archive /var/cuda-repo-ubuntu1804-11-4-local/./nvidia-compute-utils-470_470.57.02-0ubuntu1_amd64.deb (--install):
unable to make backup link of './usr/bin/nvidia-cuda-mps-control' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cuda-repo-ubuntu1804-11-4-local/./nvidia-compute-utils-470_470.57.02-0ubuntu1_amd64.deb
What can I do to fix this?
First, does your machine have a compatible GPU? Are you using WSL2? If it does and you are, please follow the installation instructions on on https://rapids.ai/wsl2. You should not need to install NVIDIA drivers or CUDA on your WSL2 instance. You may need to redo your instance, so please follow the instructions Microsoft [may] provides (found in one of the links in the Install section) Good luck, with your Kaggle competition!

File: /var/lib/dkms/sgx/1.36.2/source/dkms.conf does not exist

I am going to install dcap on my vm with kernel : Linux version 5.15.0-1029-azure (buildd#lcy02-amd64-076) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #36~20.04.1-Ubuntu SMP Tue Dec 6 17:00:26 UTC 2022 I tried the command sudo apt-get install libsgx-dcap-quote-verify-dev but I get error :
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsgx-dcap-quote-verify-dev is already the newest version (1.15.100.3-focal1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-headers-5.15.0-1029-azure (5.15.0-1029.36~20.04.1) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 5.15.0-1029-azure
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/sgx/1.36.2/source/dkms.conf does not exist.
...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
dpkg: error processing package linux-headers-5.15.0-1029-azure (--configure):
installed linux-headers-5.15.0-1029-azure package post-installation script subprocess returned error exit status 1
Setting up linux-image-5.15.0-1029-azure (5.15.0-1029.36~20.04.1) ...
Setting up linux-headers-5.4.0-135-generic (5.4.0-135.152) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-135-generic
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/sgx/1.36.2/source/dkms.conf does not exist.
...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
dpkg: error processing package linux-headers-5.4.0-135-generic (--configure):
installed linux-headers-5.4.0-135-generic package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-azure:
linux-headers-azure depends on linux-headers-5.15.0-1029-azure; however:
Package linux-headers-5.15.0-1029-azure is not configured yet.
dpkg: error processing package linux-headers-azure (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-azure:No apport report written because the error message indicates its a followup error from a previous failure.
linux-azure depends on linux-headers-azure (= 5.15.0.1029.36~20.04.19); however:
Package linux-headers-azure is not configured yet.
dpkg: error processing package linux-azure (--configure):
dependency problems - leaving unconfigured
Processing triggers for linux-image-5.15.0-1029-azure (5.15.0-1029.36~20.04.1) ...No apport report written because MaxReports is reached already
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.15.0-1029-azure
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/sgx/1.36.2/source/dkms.conf does not exist.
...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
dpkg: error processing package linux-image-5.15.0-1029-azure (--configure):
installed linux-image-5.15.0-1029-azure package post-installation script subprocess returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-headers-5.15.0-1029-azure
linux-headers-5.4.0-135-generic
linux-headers-azure
linux-azure
linux-image-5.15.0-1029-azure
E: Sub-process /usr/bin/dpkg returned an error code (1)
I think the main error comes from /var/lib/dkms/sgx/1.36.2/source/dkms.conf does not exist. I have no idea why this error ocuurs do you have any solution for it?

Unable to open '/boot/vmlinuz-5.x.x.x-generic.dpkg-new': Operation not permitted [Need solution without removing antivirus from system]

In the last couple of days, I have gone through some unmet dependencies issues while upgrading. I tried installing those packages separately but couldn't find a solution.
I know one solution that is to remove the antivirus from the system. But I'm not permitted to remove it. I am looking for another solution without removing the anti-virus from the system.
It shows while unpacking the package:
Preparing to unpack .../linux-image-5.11.0-44-generic_5.11.0-44.48~20.04.2_amd64.deb ...
Unpacking linux-image-5.11.0-44-generic (5.11.0-44.48~20.04.2) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-5.11.0-44-generic_5.11.0-44.48~20.04.2_amd64.deb (--unpack):
unable to open '/boot/vmlinuz-5.11.0-44-generic.dpkg-new': Operation not permitted
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-5.11.0-44-generic_5.11.0-44.48~20.04.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried auto clean, force install, --fix-broken.. all the possible ways found in the forums.
For sudo apt --fix-broken install:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
bnd java-wrappers libbindex-java libcommons-codec-java
libcommons-collections3-java libcommons-compress-java libcommons-lang-java
libdd-plist-java libfelix-framework-java libfelix-gogo-runtime-java
libfelix-osgi-obr-java libfelix-resolver-java libfindbugs-java
libgoogle-gson-java libgradle-core-java libgradle-plugins-java
libhttpclient-java libhttpcore-java libjarjar-java libjatl-java
libjavaewah-java libjcifs-java libjcip-annotations-java
libjformatstring-java libjgit-java libjna-java libjna-jni libjs-jquery
libjsoup-java libkryo-java libminlog-java libnative-platform-java
libnative-platform-jni libnekohtml-java libobjenesis-java
libosgi-annotation-java libosgi-compendium-java libosgi-core-java
libplexus-container-default-java libplexus-container-default1.5-java
libpolyglot-maven-java libreflectasm-java librhino-java libsimple-http-java
libwagon-http-java libxbean-reflect-java libxerces2-java
libxml-commons-external-java
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
linux-image-5.11.0-44-generic
Suggested packages:
fdutils linux-doc | linux-hwe-5.11-source-5.11.0 linux-hwe-5.11-tools
The following NEW packages will be installed:
linux-image-5.11.0-44-generic
0 upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
4 not fully installed or removed.
Need to get 0 B/11.5 MB of archives.
After this operation, 11.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 261995 files and directories currently installed.)
Preparing to unpack .../linux-image-5.11.0-44-generic_5.11.0-44.48~20.04.2_amd64
.deb ...
Unpacking linux-image-5.11.0-44-generic (5.11.0-44.48~20.04.2) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-5.11.0-44-gen
eric_5.11.0-44.48~20.04.2_amd64.deb (--unpack):
unable to open '/boot/vmlinuz-5.11.0-44-generic.dpkg-new': Operation not permit
ted
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-5.11.0-44-generic_5.11.0-44.48~20.04.2_amd6
4.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
It's annoying and I cannot install any other packages.
Any suggestions on how can I fix that?
Here is the solution that works for me:
Basically, Antivirus prevents the installation of the packages as my system has already one (McAfee agent).
First of all, I checked the status of the antivirus with the following commands if it is running or not:
# /opt/McAfee/ens/tp/init/mfetpd-control.sh status
# /opt/McAfee/ens/esp/init/mfeespd-control.sh status
If it is running then stop the services with these:
# /opt/McAfee/ens/tp/init/mfetpd-control.sh stop
# /opt/McAfee/ens/esp/init/mfeespd-control.sh stop
Then check the status again if it is stopped or not. If stopped then I started necessary updates and required installations by this:
sudo apt --fix-broken install
Finally, I started the antivirus again by these:
# /opt/McAfee/ens/esp/init/mfeespd-control.sh start
# /opt/McAfee/ens/tp/init/mfetpd-control.sh start
Reference: https://kc.mcafee.com/corporate/index?page=content&id=KB88223

Error while trying to install Node on Ubuntu

I am new to ubuntu and programming. I was trying to install nodejs.
I ran
sudo apt-get install -y nodejs
in the terminal in ubuntu. I got missing firmware warnings. I also got an error of no space left on device. I tried reading up on the error and tried manually removing old kernel versions. But I am still getting the same error. I have no idea how I should approach this issue. Any guidance would be appreciated.
Below is the terminal after I ran the command.
dell#dell:~$ sudo apt-get install -y nodejs
[sudo] password for dell:
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (10.14.2-1nodesource1).
0 upgraded, 0 newly installed, 0 to remove and 257 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.157.20) ...
update-initramfs: Generating /boot/initrd.img-4.18.1
W: Possible missing firmware /lib/firmware/i915/skl_dmc_ver1_27.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_04.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/cnl_dmc_ver1_07.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_39.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver9_29.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver9_33.bin
for module i915
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.18.1 with 1.
dpkg: error processing package linux-firmware (--configure):
subprocess installed post-installation script returned error exit
status 1
No apport report written because the error message indicates its a
followup error from a previous failure.
dpkg: dependency problems prevent
configuration of linux-image-generic-hwe-16.04:
linux-image-generic-hwe-16.04 depends on linux-firmware; however:
Package linux-firmware is not configured yet.
dpkg: error processing package linux-image-generic-hwe-16.04 (--
configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-
hwe-16.04:
linux-generic-hwe-16.04 depends on linux-image-generic-hwe-16.04 (=
4.15.0.42.63); however:
Package linux-image-generic-hwe-16.04 is not configured yet.
dpkg: error processing package linux-generic-hwe-16.04 (--
configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-
generic-hwe-16.04:
linux-signed-generic-hwe-16.04 depends on linux-generic-hwe-16.04;
however:
Package linux-generic-hwe-16.04 is not configured yet.
dpkg: error processing package linux-signed-generic-hwe-16.04 (--
configure):
dependency problems - leaving unconfigured
PrNo apport report written because the error message indicates its a
followup error from a previous failure.
No apport report written because MaxReports
is reached already
ocessing triggers for initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: Generating /boot/initrd.img-4.18.1
W: Possible missing firmware /lib/firmware/i915/skl_dmc_ver1_27.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_04.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/cnl_dmc_ver1_07.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_39.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver9_29.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver9_33.bin
for module i915
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.18.1 with 1.
dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit
status 1
No apport report written because MaxReports is reached already
Errors
were encountered while processing:
linux-firmware
linux-image-generic-hwe-16.04
linux-generic-hwe-16.04
linux-signed-generic-hwe-16.04
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
run this :
node -v if it displays a version, then it means you already have the latest version of node installed. Reason is this from your logs:
nodejs is already the newest version (10.14.2-1nodesource1).
0 upgraded, 0 newly installed, 0 to remove and 257 not upgraded.
5 not fully installed or removed.
Your logging says you are low on disk space:
gzip: stdout: No space left on device
Try to delete some files and try again
You can try the command
df -h
to list your free space on your partitions

dependency error in R package

Everytime I give the command for any package, in this case for ggplot2, I get this after a few minutes. I am missing something, but can't figure out what. Thanks in advance!
ERROR: dependency ‘plyr’ is not available for package ‘reshape2’
* removing ‘/home/cj/R/x86_64-pc-linux-gnu-library/2.14/reshape2’
Warning in install.packages :
installation of package ‘reshape2’ had non-zero exit status
ERROR: dependency ‘plyr’ is not available for package ‘scales’
* removing ‘/home/cj/R/x86_64-pc-linux-gnu-library/2.14/scales’
Warning in install.packages :
installation of package ‘scales’ had non-zero exit status
ERROR: dependencies ‘plyr’, ‘reshape2’, ‘scales’ are not available for package ‘ggplot2’
* removing ‘/home/cj/R/x86_64-pc-linux-gnu-library/2.14/ggplot2’
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
The downloaded packages are in
‘/tmp/RtmpAXVGC6/downloaded_packages’
You are on R 2.14. Please please PLEASE upgrade to something from the last few years -- preferably from the current year such as R 3.2.0, 3.2.1 or the recently-release 3.2.2.
Simply put, you are being unreasonable in trying to expect that current and well-maintained archived for users of the current versions should also work with versions released that many years ago.

Resources