System: Ubuntu 17.04
時(shí)期:NewYork
問題1: unable locate package
apt-get install vnc4server
在執(zhí)行上面的命令的時(shí)候,系統(tǒng)放回了這個(gè)錯(cuò)誤搁料,無法指定包
在百度上查了很久或详,最后的解決方案是拷貝了別人的一個(gè)資源包里面的地址,在文件尾部追加了這個(gè)郭计,就解決了安裝vnc的問題
如下:
vim /etc/apt/sources.list
###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ trusty main universe multiverse
###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main universe multiverse
unset VNCSERVERARGS
VNCSERVERS=""
[ -f /etc/vncserver/vncservers.conf ] && . /etc/vncserver/vncservers.conf
prog=$"VNC server"
. /lib/lsb/init-functions
REQ_USER=$2
echo -n $"Starting $prog: "
ulimit -S -c 0 >/dev/null 2>&1
RETVAL=0
for display in ${VNCSERVERS}
do
export USER="${display##*:}"
if test -z "${REQ_USER}" -o "${REQ_USER}" == ${USER} ; then
echo -n "${display} "
unset BASH_ENV ENV
DISP="${display%%:*}"
export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
su ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
fi
done