I was having issues getting SSH to work under my WSL Ubuntu 18.04.3 LTS, I was getting connection refused all the time, so I found , which is to just:   sudo apt-get remove openssh-client openssh-server sudo apt-get install openssh-client openssh-server    remove works, but install gives me:  sudo apt-get install openssh-client openssh-server Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: openssh-sftp-server ssh-import-id Suggested packages: keychain libpam-ssh monkeysphere ssh-askpass molly-guard rssh E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2&gt;/dev/null || true: Success E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2&gt;/dev/null || true: Success   I tried, as suggested :  sudo dpkg --force depends -P lxd sudo dpkg --force depends -P lxd-client   But it didn't work. How can I fix this and what is going on?
123398
I am having problems with apt on my WSL installation of Ubuntu 18.04.  Whenever I try to install a package with apt I get this:  Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: [...]  E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2&gt;/dev/null || true: Success E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2&gt;/dev/null || true: Success   I believe snapd/snappy is the culprit here, but I have not been able to find a way to solve this. Afaik snapd is not supported on WSL and I assume it's been installed in an update.  I am hoping to find a solution that won't require me to nuke the whole installation and having to spend hours setting everything up fresh.  Thanks in advance.  EDIT: original output from apt --version was apt 1.6.8 (amd64). An upgrade to 1.7.0 (amd64) did not seem to fix the issue.
44608
How do I remove snap? apt pretends it's not there but I can still call commands with it.  Trying to rm it says "read only file system"  root@tunnel:/# apt remove snap Reading package lists... Done Building dependency tree Reading state information... Done Package 'snap' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@tunnel:/# snap whoami email: -
24250
sudo ufw disable followed by sudo ufw enable kicks me out of SSH  DMESG reports  [UFW BLOCK] IN=eth0 OUT= MAC=30:........ SRC=192.168.1.me DST=192.168.1.server LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=15776 DF PROTO=TCP SPT=55640 DPT=22 WINDOW=253 RES=0x00 ACK URGP=0  I can log back in without having to change rules via the console (UFW still enabled).  This started after upgrading Xenial (16.04) from kernel 4.4 to 4.15 (HWE). Upgrading to 18.04.1 did not solve the issue.  Versions:   iptables v1.6.1 ufw 0.35 4.15.0-29-generic #31-Ubuntu Ubuntu 18.04.1 LTS   UFW status verbose is (some rules were omitted, but they are all ALLOW)  Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip  To                         Action      From --                         ------      ---- 22                         ALLOW IN    Anywhere 22 (v6)                    ALLOW IN    Anywhere (v6)   Why is this happening, or at least, how to revert to the expected behavior?  I looked at , and I am not sure it applies, but here's /etc/ufw/before.rules  # # rules.before # # Rules that should be run before the ufw command line added rules. Custom # rules should be added to one of these chains: #   ufw-before-input #   ufw-before-output #   ufw-before-forward #  # Don't delete these required lines, otherwise there will be errors *filter :ufw-before-input - [0:0] :ufw-before-output - [0:0] :ufw-before-forward - [0:0] :ufw-not-local - [0:0] # End required lines   # allow all on loopback -A ufw-before-input -i lo -j ACCEPT -A ufw-before-output -o lo -j ACCEPT  # quickly process packets for which we already have a connection -A ufw-before-input -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT -A ufw-before-output -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT -A ufw-before-forward -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT  # drop INVALID packets (logs these in loglevel medium and higher) -A ufw-before-input -m conntrack --ctstate INVALID -j ufw-logging-deny -A ufw-before-input -m conntrack --ctstate INVALID -j DROP  # ok icmp codes for INPUT -A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT -A ufw-before-input -p icmp --icmp-type source-quench -j ACCEPT -A ufw-before-input -p icmp --icmp-type time-exceeded -j ACCEPT -A ufw-before-input -p icmp --icmp-type parameter-problem -j ACCEPT -A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT  # ok icmp code for FORWARD -A ufw-before-forward -p icmp --icmp-type destination-unreachable -j ACCEPT -A ufw-before-forward -p icmp --icmp-type source-quench -j ACCEPT -A ufw-before-forward -p icmp --icmp-type time-exceeded -j ACCEPT -A ufw-before-forward -p icmp --icmp-type parameter-problem -j ACCEPT -A ufw-before-forward -p icmp --icmp-type echo-request -j ACCEPT  # allow dhcp client to work -A ufw-before-input -p udp --sport 67 --dport 68 -j ACCEPT  # # ufw-not-local # -A ufw-before-input -j ufw-not-local  # if LOCAL, RETURN -A ufw-not-local -m addrtype --dst-type LOCAL -j RETURN  # if MULTICAST, RETURN -A ufw-not-local -m addrtype --dst-type MULTICAST -j RETURN  # if BROADCAST, RETURN -A ufw-not-local -m addrtype --dst-type BROADCAST -j RETURN  # all other non-local packets are dropped -A ufw-not-local -m limit --limit 3/min --limit-burst 10 -j ufw-logging-deny -A ufw-not-local -j DROP  # allow MULTICAST mDNS for service discovery (be sure the MULTICAST line above # is uncommented) -A ufw-before-input -p udp -d 224.0.0.251 --dport 5353 -j ACCEPT  # allow MULTICAST UPnP for service discovery (be sure the MULTICAST line above # is uncommented) -A ufw-before-input -p udp -d 239.255.255.250 --dport 1900 -j ACCEPT  # don't delete the 'COMMIT' line or these rules won't be processed COMMIT   PS: I didn't expect this to "fix" the issue but just for reference I changed the port SSHD listens on (and the corresponding rule) and the problem persists.
55159
I know how to configure APT to use a web proxy. But what about snap?
108245
On Debian Jessie (latest).  sshd_config is clearly:  PrintMotd no PrintLastLog yes   But when I login to it from PuTTY, it failed to display the time.  login as: XXXXXXXXXXXXXX Authenticating with public key "imported-openssh-key" XXXXXXXX@XXXXXXXXXXXX:~$ _   Any ideas? I'm a IT developer and other servers are working as intended.
111445
The server I am using is Ubuntu 10.10. To ensure security I want to edit the banner the server sends to the client.   If I telnet to my host on port 22 it tells me the exact version of SSH I am running (SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu4). The situation is the same with MySQL and Cyrus.  Any suggestions? At least for SSH?  Thanks
56087
I wanted to try out rsh (or rshell?) - the old, insecure way of logging in remotely.   On my Ubuntu 11.04, it turns out an rsh command exists:  $ which rsh /usr/bin/rsh   ... however, it turns out it is a mere symlink for ssh:  $ ls -la `which rsh` lrwxrwxrwx 1 root root 21 2011-03-25 16:07 /usr/bin/rsh -&gt; /etc/alternatives/rsh  $ ls -la $(readlink -f `which rsh`) -rwxr-xr-x 1 root root 391580 2011-04-02 12:16 /usr/bin/ssh   Does this "old" rsh exist in Ubuntu repositories - and if so, how do I install it? Also, is rsh also split in client and server packages - and if so, which packages are those?
23887
First of all, I think this question is not duplicated, because I have tried all other solutions I found here, but nothing solved my problem.  I use Ubuntu 14.04 64 bit.  I have tried until now: sudo apt-get install skype -> It didn't work. The error was:   The following packages have unmet dependencies: skype : Depends: skype-bin E: Unable to correct problems, you have held broken packages.   I have tried sudo dpkg add-architecture &amp;&amp; sudo dpkg -i skype-ubuntu-precise_4.3.0.37-1_i386.deb but it didn't work either. The error was:  dpkg: dependency problems prevent configuration of skype: skype depends on libqt4-dbus (&gt;= 4:4.5.3); however: Package libqt4-dbus is not installed. skype depends on libqt4-network (&gt;= 4:4.8.0); however: Package libqt4-network:i386 is not installed. skype depends on libqt4-xml (&gt;= 4:4.5.3); however: Package libqt4-xml:i386 is not installed. skype depends on libqtcore4 (&gt;= 4:4.7.0~beta1); however: Package libqtcore4:i386 is not installed. skype depends on libqtgui4 (&gt;= 4:4.8.0); however: Package libqtgui4:i386 is not installed. skype depends on libqtwebkit4 (&gt;= 2.2~2011week36); however: skype depends on libstdc++6 (&gt;= 4.2.1); however: Package libstdc++6:i386 is not installed. skype depends on libx11-6; however: Package libx11-6:i386 is not installed. skype depends on libxext6; however: Package libxext6:i386 is not installed. skype depends on libxss1; however: Package libxss1:i386 is not installed. skype depends on libxv1; however: Package libxv1:i386 is not installed. skype depends on dpkg: error processing package skype (--install): dependency problems - leaving unconfigured Processing triggers for hicolor-icon-theme (0.13-1) ... Processing triggers for gnome-menus (3.10.1-0ubuntu2) ... Processing triggers for desktop-file-utils (0.22-1ubuntu1) ... Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.54ubuntu1) ... Errors were encountered while processing: skype   I have tried to use after sudo apt-get -f install but it didn't solve the issue.  I have tried to install by using Gdebi. The error was:  Cannot install 'libqtwebkit4:i386'   I have tried to install using Ubuntu Software Center. The error was:  Cannot install 'libqtwebkit4:i386'   I have tried changing the server in "Software and Updates". I have tried to use "Main Server" and "Servers for United States". But it couldn't solve my problem.  Anyone has any idea how to solve that?  SOLVED  Well, I formatted my pc and I installed Skype first of all. Probably another installation that I had done before the Skype installation was the problem, i guess.  Thanks people!
119761
So I was trying to upgrade openssl and decided to remove the existing openssl packages because it was from a different repository.  Once removed, I can't no longer get either yum or wget to work again because they all seem to rely on ssl  I'm missing the files  libssl.so.10 libcrypto.so.10   I was able to recover libssl.so.10 by using libssl3.so that existed locally, but not with libcrypto.so.10 yet (since this file probably need to be downloaded from a remote location).  yum:  The error leading to this problem was: libcrypto.so.10: cannot open shared object file: No such file or directory   wget:  wget: error while loading shared libraries: libcrypto.so.10:   In other words, I'm now in a catch-22; I can't use yum, wget, curl, rpm (with url), or rsync (by connecting to a backup server instance) because they all require ssl lib files.  I can't even open a new SSH to the problematic server since SSL lib files is now gone. (can only access with existing Putty prompt).  I try "copy and paste" the file content with VIM editor using another snapshot backup but doesn't seem working.  I'm thinking if there is a way to download a rpm or even a single file over plain http using existing tools not listed above...
45435
Alright, so due to problems connecting to a wifi network on the ubuntu server distribution, i want to install the neccesary packages for a lamp, mail and ssh server on an ubuntu desktop 14.04 lte distribution(i am able to connect to the internet with the desktop version).  what should i install from the command line?  Thanks in advance!
7338
After I made a system upgrade (apt-get upgrade) on a debian box, I get an error everytime i tries to use apt-get. Example:  # apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up initscripts (2.88dsf-41+deb7u1) ... insserv: Service killprocs has to be enabled to start service single insserv: exiting now! update-rc.d: error: insserv rejected the script header dpkg: error processing initscripts (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  initscripts E: Sub-process /usr/bin/dpkg returned an error code (1)   I have tried to find a solution, but can't find anything that looks like this. First of all I have this packet which is "not fully installed or removed". But I can't find the command to locate it. Have tried:  dpkg -l | grep rc   But it list about 20 packets, so there must be a better way to find this packet.  To fix the packet system I have tried normal procedures, like:  apt-get clean &amp;&amp; sudo apt-get autoremove  apt-get -f install dpkg --configure -a   The clean command is good, but the install command will fail with as shown above.  In a desperate try, I tried to reinstall insserv (not sure it's the packet which is broken), but it fails the same way:  # apt-get install --reinstall insserv Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded. 1 not fully installed or removed. Need to get 63.8 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://ftp.us.debian.org/debian/ wheezy/main insserv armel 1.14.0-5 [63.8 kB] Fetched 63.8 kB in 0s (85.5 kB/s) Setting up initscripts (2.88dsf-41+deb7u1) ... insserv: Service killprocs has to be enabled to start service single insserv: exiting now! update-rc.d: error: insserv rejected the script header dpkg: error processing initscripts (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  initscripts E: Sub-process /usr/bin/dpkg returned an error code (1)
18473
I'm on Ubuntu 16 and I'd like to add a neo4j package. I tried in 3 ways all leading to the same error.  These are my attempts:  wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add -  sudo wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add -  sudo -i wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add -   But I always get this error message:  ERROR: This command can only be used by root. --2016-11-04  http://debian.neo4j.org/neotechnology.gpg.key Resolving debian.neo4j.org (debian.neo4j.org)... 52.0.233.188 Connecting to debian.neo4j.org (debian.neo4j.org)|52.0.233.188|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 4791 (4,7K) [application/octet-stream] Saving to: ‘STDOUT’  -                     0%[                    ]       0  --.-KB/s    in 0s         Cannot write to ‘-’ (Broken pipe).
65678
I am really struggling with this.     My host (A) is behind a proxy/firewall (PF) and needs to connect to   host H.   The proxy has HTTP/FTP/SOCK proxy configured and I have no issue to configure in web browser, wget etc.  But when I use...   ssh H //to connect my host    I have no success to pass over the proxy. It seems to try to connect directly instead of going via the PF.  I am using Ubuntu 12.10.
103373
Apt is seemingly unable to do anything useful for me, repeatedly giving messages of this form:  dpkg: dependency problems prevent configuration of linux-server:  linux-server depends on linux-image-server (= 3.2.0.37.44); however:   Version of linux-image-server on system is 3.2.0.37.45.  linux-server depends on linux-headers-server (= 3.2.0.37.44); however:   Version of linux-headers-server on system is 3.2.0.37.45. dpkg: error processing linux-server (--configure):  dependency problems - leaving unconfigured   This is basically the same problem as  which got closed Duplicate to an answer that is totally useless for this situation.  None of the advice in  helps.    Explicitly:  sudo apt-get clean sudo apt-get autoclean sudo apt-get update   all have no not effect.  While  sudo apt-get -f install sudo dpkg --configure -a sudo apt-get -u dist-upgrade sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade   all give some form of the error message above.
113033
I'm following  to install git on my laptop. When I do:  $ sudo apt-get install git-core  This is what my terinal shows:  Reading package lists... Done Building dependency tree         Reading state information... Done The following packages were automatically installed and are no longer required:      libasprintf0c2:i386   libcroco3:i386   libgettextpo0:i386   libgomp1:i386   libunistring0:i386 Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   git git-man liberror-perl Suggested packages:   git-daemon-run   git-daemon-sysvinit   git-doc git-el   git-arch git-cvs   git-svn   git-email   git-gui   gitk gitweb The following NEW packages will be installed:   git git-core git-man liberror-perl   0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.  Need to get 6,825 kB of archives. After this operation, 15.3 MB of additional disk space will be used. Do you want to continue [Y/n]? y  WARNING: The following packages cannot be authenticated!    liberror-perl git-man git git-core Install these packages without verification [y/N]?       E: Some packages could not be authenticated lucas@lucas-Inspiron-N5050:~$ sudo apt-get install git-core Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required:   libasprintf0c2:i386   libcroco3:i386   libgettextpo0:i386   libgomp1:i386   libunistring0:i386 Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   git git-man liberror-perl Suggested packages:   git-daemon-run git-daemon-sysvinit   git-doc git-el git-arch git-cvs git-svn   git-email git-gui gitk gitweb The following NEW packages will be installed:   git git-core   git-man liberror-perl  0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.  Need to get 6,825 kB of archives. After this operation, 15.3 MB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated!   liberror-perl git-man git git-core Install these packages without verification [y/N]? y Err httpq://py.archive.ubuntu.com/ubuntu/quantal/main liberror-perl all 0.17-1    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname) Err httpq://py.archive.ubuntu.com/ubuntu/ quantal/main git-man all 1:1.7.10.4-1ubuntu1    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname) Err httpq://py.archive.ubuntu.com/ubuntu/ quantal/main git amd64 1:1.7.10.4-1ubuntu1    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname) Err httpq://py.archive.ubuntu.com/ubuntu/ quantal/main git-core all 1:1.7.10.4-1ubuntu1    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)  Failed to fetch httpq://py.archive.ubuntu.com/ubuntu/pool/main/libe/liberror-perl/liberrorperl_0.17-1_all.deb    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)  Failed to fetch httpq://py.archive.ubuntu.com/ubuntu/pool/main/g/gi/git-man_1.7.10.4-1ubuntu1_all.deb    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)  Failed to fetch httpq://py.archive.ubuntu.com/ubuntu/pool/main/g/git/git_1.7.10.4-1ubuntu1_amd64.deb    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)  Failed to fetch http://py.archive.ubuntu.com/ubuntu/pool/main/g/git/git-core_1.7.10.4-1ubuntu1_all.deb   Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname) E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   How could I install git on Ubuntu 12.10? I can't even do it from the Ubuntu Software Center.  Thanks in advance!
47270
When i tried to install PIP for python3 in Ubuntu 18.04.2 LTS  Command I used:   root@DESKTOP-0BEE3OD:/mnt/c# apt install python3-pip  E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2&gt;/dev/null || true: Success   I am not able to fix this error.
13953
NO, this is not a duplicate of . So, read on.  I am seeing conflicting information with respect to Ubuntu 12.04:   The  claims Ubuntu 12.04 to be affected and needs to be patched with 1.0.1g The  claims that version 1.0.1-4ubuntu5.12 for the package libssl1.0.0 should fix the issue on Ubuntu 12.04.   Now I do have these packages installed:  # dpkg -l | grep ssl ii  libssl1.0.0                      1.0.1-4ubuntu5.10                 SSL shared libraries ii  openssl                          1.0.1-4ubuntu5.10                 Secure Socket Layer (SSL) binary and related cryptographic tools  # lsb_release  -a | grep -i description Description:    Ubuntu 12.04.3 LTS   So, If I consider above two points, I am not sure which one is true.  Besides,  says that my machine is vulnerable.  Has anyone yet been able to fix this issue successfully on Ubuntu 12.04? If yes, then could you provide me the steps you have taken?