Wednesday, August 1, 2018

Install SNMP not as easy as I thought

Looks around for how to install SNMP. Finds multiple examples:


Just run "apt-get install snmpd".....


But when I do that I get errors. I do what it says: first run ap-get install snmpd, but it fails and tells me to try "apt-get -f install", but that fails and tells me to try "apt autoremove" but that fails and tells me to try "apt-get -f install" but that fails and.... [repeats circle of fun].


Would just like to get this Linux server (Ubuntu 16.04.1 LTS) running SNMP on public and port 161. Defaults basically.


Any ideas? I am new-ish to Linux. For all of the dependencies, do I just run commands like this?:


apt-get install linux-image-4.4.0-62-generic


apt-get install linux-image-4.4.0-64-generic


apt-get install linux-image-generic


apt-get install thermald


apt-get install libsnmp30


apt-get install libsnmp-base


etc... etc...


I am not fluent in Linux so if you have suggestions, please explain how to accomplish those suggestions.


Here is the exact loop I'm going through:


root@MYSERVER:/etc# apt-get install snmpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-image-extra-4.4.0-62-generic : Depends: linux-image-4.4.0-62-generic but it is not going to be installed
linux-image-extra-4.4.0-64-generic : Depends: linux-image-4.4.0-64-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-4.4.0-64-generic but it is not going to be installed
Recommends: thermald but it is not going to be installed
snmpd : Depends: libsnmp30 (= 5.7.3+dfsg-1ubuntu4) but it is not going to be installed
Depends: libsnmp-base but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@MYSERVER:/etc# apt-get -f 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:
linux-headers-4.4.0-51 linux-headers-4.4.0-51-generic linux-headers-4.4.0-62 linux-headers-4.4.0-62-generic linux-image-4.4.0-51-generic linux-image-4.4.0-62-generic linux-image-extra-4.4.0-51-generic
linux-image-extra-4.4.0-62-generic
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
linux-image-4.4.0-62-generic linux-image-4.4.0-64-generic
Suggested packages:
fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
The following NEW packages will be installed:
linux-image-4.4.0-62-generic linux-image-4.4.0-64-generic
0 upgraded, 2 newly installed, 0 to remove and 198 not upgraded.
21 not fully installed or removed.
Need to get 0 B/43.1 MB of archives.
After this operation, 131 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 346980 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.0-64-generic_4.4.0-64.85_amd64.deb ...
Done.
Unpacking linux-image-4.4.0-64-generic (4.4.0-64.85) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-64-generic_4.4.0-64.85_amd64.deb (--unpack):
cannot copy extracted data for './boot/vmlinuz-4.4.0-64-generic' to '/boot/vmlinuz-4.4.0-64-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
Preparing to unpack .../linux-image-4.4.0-62-generic_4.4.0-62.83_amd64.deb ...
Done.
Unpacking linux-image-4.4.0-62-generic (4.4.0-62.83) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-62-generic_4.4.0-62.83_amd64.deb (--unpack):
cannot copy extracted data for './boot/vmlinuz-4.4.0-62-generic' to '/boot/vmlinuz-4.4.0-62-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-4.4.0-64-generic_4.4.0-64.85_amd64.deb
/var/cache/apt/archives/linux-image-4.4.0-62-generic_4.4.0-62.83_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@MYSERVER:/etc#

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...