โปรดแจ้งให้เราทราบว่าต้องทำอะไรที่นี่ ฉันกำลังพยายามติดตั้ง Hadoop ใน Ubuntu การเชื่อมต่อ ssh กำลังเกิดข้อผิดพลาด
$ sudo apt-get install openssh-server 
Reading package lists... Done 
Building dependency tree
Reading state information... Done 
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: 
openssh-server : 
Depends: openssh-client (= 1:6.6p1-2ubuntu1) but 1:6.6p1-2ubuntu2 is to be installed 
Recommends: ncurses-term but it is not going to be installed 
Recommends: ssh-import-id but it is not going to be installed 
E: Unable to correct problems, you have held broken packages.
$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:3a:a6:f3
inet addr:192.168.0.112 Bcast:192.168.0.255 Mask:255.255.255.0 
inet6 addr: fe80::a00:27ff:fe3a:a6f3/64 Scope:Link 
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
RX packets:15543 errors:0 dropped:0 overruns:0 frame:0 
TX packets:10845 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:1000 
RX bytes:11839138 (11.8 MB) TX bytes:1448354 (1.4 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 
inet6 addr: ::1/128 Scope:Host 
UP LOOPBACK RUNNING MTU:65536 Metric:1 
RX packets:2175 errors:0 dropped:0 overruns:0 frame:0 
TX packets:2175 errors:0 dropped:0 overruns:0 
carrier:0 collisions:0 txqueuelen:0 
RX bytes:217643 (217.6 KB) TX bytes:217643 (217.6 KB)
$ sudo apt-get install openssh-server
Some packages could not be installed. 
The following information may help to resolve the situation: 
The following packages have unmet dependencies: 
openssh-server : 
Depends: openssh-client (= 1:6.6p1-2ubuntu1) but 1:6.6p1-2ubuntu2 is to be installed 
Recommends: ncurses-term but it is not going to be installed 
Recommends: ssh-import-id but it is not going to be installed 
E: Unable to correct problems, you have held broken packages.     
$ sudo iptables -L
 Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination 
$ sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT
$ ssh localhost ssh: connect to host localhost port 22: Connection refused
          
                  คุณไม่มีที่เก็บอื่น ๆ ที่เปิดใช้งานตามต้องการ
                
                
                  
                    —
                    Thomas Ward 
                    
                  
                
              
                  @ThomasW ฉันไม่ได้รับคำถามของคุณ คุณช่วยกรุณาบอกฉันว่าฉันจะตรวจสอบอะไร มีวิธีใดบ้างที่เกี่ยวข้องกับ Oracle vm. (Network Brigade Adapter)
                
                
                  
                    —
                    user3858193 
                    
                  
                
              
                  ฉันสามารถเชื่อมต่อ cloudera VM ได้ แต่อูบุนตู VM.ssh hots ในท้องที่นั้นทำงานได้อย่างสมบูรณ์บน cloudera vm โปรดแจ้งให้ฉันทราบว่าการเชื่อมต่อเครือข่ายควรเป็นอย่างไร
                
                
                  
                    —
                    user3858193 
                    
                  
                
              
                  @ user3858193 ฉันหมายถึงเหมือน PPAs หรืออะไรก็ตาม คุณยังไม่ได้เพิ่มระบบของคุณ?
                
                
                  
                    —
                    Thomas Ward 
                    
                  
                
              
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -f && sudo apt-get install openssh-server -yทำ หากไม่ได้ติดตั้งให้ดูที่คำถามนี้: askubuntu.com/questions/223237/... ปัญหาของคุณคือ openssh ไม่ได้ติดตั้งเพราะyou have held broken packagesดังนั้นคำสั่งssh localhostจะไม่ทำงานจนกว่าคุณจะติดตั้งจริง