Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
OpenSSH_6.6.1, OpenSSL 1.0.2d 9 Jul 2015 debug1: Reading configuration data /home/zhangsan/.ssh/config debug1: /home/zhangsan/.ssh/config line 6: Applying options for gitcafe.com debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to gitcafe.com [124.42.117.218] port 22. debug1: identity file /home/zhangsan/.ssh/id_rsa.gitcafe type 1 debug1: identity file /home/zhangsan/.ssh/id_rsa.gitcafe-cert type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3 debug1: Host 'gitcafe.com' is known and matches the RSA host key. debug1: Found key in /home/zhangsan/.ssh/known_hosts:1 debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/zhangsan/.ssh/id_rsa.gitcafe debug1: Offering RSA public key: zhang.san@163.com debug1: Authentications that can continue: publickey debug1: Offering RSA public key: zhang.san@gmail.com debug1: Server accepts key: pkalg ssh-rsa blen 279 debug1: Authentication succeeded (publickey). Authenticated to gitcafe.com ([124.42.117.218]:22). Hi zhangsan! You've successfully authenticated, but GitCafe does not provide shell access. debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0 debug1: channel 0: free: client-session, nchannels 1 Transferred: sent 4632, received 3656 bytes, in 1.0 seconds Bytes per second: sent 4642.3, received 3664.1 debug1: Exit status 1
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: vim-gnome : Depends: vim-gui-common (= 2:7.4.052-1ubuntu3) but it is not going to be installed Depends: vim-common (= 2:7.4.052-1ubuntu3) but 2:7.4.826-1 is to be installed Depends: vim-runtime (= 2:7.4.052-1ubuntu3) but 2:7.4.826-1 is to be installed E: Unable to correct problems, you have held broken packages.
看上面的意思是这个插件依赖的几个库没有安装,手动安装一下:
1
sudo apt-get install vim-gui-common
然后再试试可不可以安装vim-gnome:
1
sudo apt-get install vim-gnome
果不其然又报错了:
1 2
The following packages have unmet dependencies: vim-gnome : Depends: vim-runtime (= 2:7.4.052-1ubuntu3) but 2:7.4.826-1 is to be installed
vim-runtime is already the newest version. The following packages were automatically installed and are no longer required: g++-4.8 libstdc++-4.8-dev linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic linux-image-3.13.0-32-generic linux-image-extra-3.13.0-32-generic Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
FAILED: SemanticException [Error 10025]: Line 1:7 Expression not in GROUP BY key 'sys_code'
具体的SQL语句如下:
1 2 3 4
select sys_code,status, count(*) as total from ap_user_order_his where link_end_date='2099-12-31'and sys_code in (1000,1001,1003,1004) groupby status orderby total desc;
select collect_set(sys_code),status, count(*) as total from ap_user_order_his where link_end_date='2099-12-31'and sys_code in (1000,1001,1003,1004) groupby status orderby total desc;
或者可以只取一个值:
1 2 3 4
select collect_set(sys_code)[0],status, count(*) as total from ap_user_order_his where link_end_date='2099-12-31'and sys_code in (1000,1001,1003,1004) groupby status orderby total desc;