Virutal box에서 Ubuntu 16.04.5 LTS 를 구동시, apt update 되지 않음
![](https://tistory1.daumcdn.net/tistory/269233/skin/images/bg_clear.gif)
한 2년 만에 Ubuntu 16.04.5 LTS 를 구동하였다.
오래되어서, apt update 를 수행하였으나, 아래와 같이 오류가 발생한다....헐.
Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-139-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
54 packages can be updated.
43 updates are security updates.
# apt update
Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2 http://kr.archive.ubuntu.com/ubuntu xenial InRelease
Temporary failure resolving 'kr.archive.ubuntu.com'
Err:3 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease
Temporary failure resolving 'kr.archive.ubuntu.com'
Err:4 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease
Temporary failure resolving 'kr.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
37 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'kr.archive.ubuntu.com'
W: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'kr.archive.ubuntu.com'
W: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'kr.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@u64-16-bj:~# apt list --upgradable
Listing... Done
ghostscript/xenial-updates,xenial-security 9.26~dfsg+0-0ubuntu0.16.04.3 amd64 [upgradable from: 9.25~dfsg+1-0ubuntu0.16.04.3]
libcups2/xenial-updates,xenial-security 2.1.3-4ubuntu0.6 amd64 [upgradable from: 2.1.3-4ubuntu0.5]
libcupsimage2/xenial-updates,xenial-security 2.1.3-4ubuntu0.6 amd64 [upgradable from: 2.1.3-4ubuntu0.5]
libgs9/xenial-updates,xenial-security 9.26~dfsg+0-0ubuntu0.16.04.3 amd64 [upgradable from: 9.25~dfsg+1-0ubuntu0.16.04.3]
libgs9-common/xenial-updates,xenial-updates,xenial-security,xenial-security 9.26~dfsg+0-0ubuntu0.16.04.3 all [upgradable from: 9.25~dfsg+1-0ubuntu0.16.04.3]
libpam-systemd/xenial-updates,xenial-security 229-4ubuntu21.10 amd64 [upgradable from: 229-4ubuntu21.9]
libpoppler58/xenial-security 0.41.0-0ubuntu1.10 amd64 [upgradable from: 0.41.0-0ubuntu1.8]
libsmbclient/xenial-updates,xenial-security 2:4.3.11+dfsg-0ubuntu0.16.04.18 amd64 [upgradable from: 2:4.3.11+dfsg-0ubuntu0.16.04.17]
libssl1.0.0/xenial-updates,xenial-security 1.0.2g-1ubuntu4.14 amd64 [upgradable from: 1.0.2g-1ubuntu4.13]
libsystemd0/xenial-updates,xenial-security 229-4ubuntu21.10 amd64 [upgradable from: 229-4ubuntu21.9]
libudev1/xenial-updates,xenial-security 229-4ubuntu21.10 amd64 [upgradable from: 229-4ubuntu21.9]
bwbclient0/xenial-updates,xenial-security 2:4.3.11+dfsg-0ubuntu0.16.04.18 amd64 [upgradable from: 2:4.3.11+dfsg-0ubuntu0.16.04.17]
linux-generic/xenial-updates 4.4.0.140.146 amd64 [upgradable from: 4.4.0.139.145]
linux-headers-generic/xenial-updates 4.4.0.140.146 amd64 [upgradable from: 4.4.0.139.145]
linux-image-generic/xenial-updates 4.4.0.140.146 amd64 [upgradable from: 4.4.0.139.145]
linux-libc-dev/xenial-updates 4.4.0-140.166 amd64 [upgradable from: 4.4.0-139.165]
openjdk-8-jdk/xenial-updates,xenial-security 8u191-b12-0ubuntu0.16.04.1 amd64 [upgradable from: 8u181-b13-1ubuntu0.16.04.1]
openjdk-8-jdk-headless/xenial-updates,xenial-security 8u191-b12-0ubuntu0.16.04.1 amd64 [upgradable from: 8u181-b13-1ubuntu0.16.04.1]
openjdk-8-jre/xenial-updates,xenial-security 8u191-b12-0ubuntu0.16.04.1 amd64 [upgradable from: 8u181-b13-1ubuntu0.16.04.1]
openjdk-8-jre-headless/xenial-updates,xenial-security 8u191-b12-0ubuntu0.16.04.1 amd64 [upgradable from: 8u181-b13-1ubuntu0.16.04.1]
openssl/xenial-updates,xenial-security 1.0.2g-1ubuntu4.14 amd64 [upgradable from: 1.0.2g-1ubuntu4.13]
python-samba/xenial-updates,xenial-security 2:4.3.11+dfsg-0ubuntu0.16.04.18 amd64 [upgradable from: 2:4.3.11+dfsg-0ubuntu0.16.04.17]
python3-distupgrade/xenial-updates,xenial-updates 1:16.04.26 all [upgradable from: 1:16.04.25]
qemu-user-static/xenial-updates,xenial-security 1:2.5+dfsg-5ubuntu10.33 amd64 [upgradable from: 1:2.5+dfsg-5ubuntu10.32]
samba/xenial-updates,xenial-security 2:4.3.11+dfsg-0ubuntu0.16.04.18 amd64 [upgradable from: 2:4.3.11+dfsg-0ubuntu0.16.04.17]
samba-common/xenial-updates,xenial-updates,xenial-security,xenial-security 2:4.3.11+dfsg-0ubuntu0.16.04.18 all [upgradable from: 2:4.3.11+dfsg-0ubuntu0.16.04.17]
samba-common-bin/xenial-updates,xenial-security 2:4.3.11+dfsg-0ubuntu0.16.04.18 amd64 [upgradable from: 2:4.3.11+dfsg-0ubuntu0.16.04.17]
samba-dsdb-modules/xenial-updates,xenial-security 2:4.3.11+dfsg-0ubuntu0.16.04.18 amd64 [upgradable from: 2:4.3.11+dfsg-0ubuntu0.16.04.17]
samba-libs/xenial-updates,xenial-security 2:4.3.11+dfsg-0ubuntu0.16.04.18 amd64 [upgradable from: 2:4.3.11+dfsg-0ubuntu0.16.04.17]
samba-vfs-modules/xenial-updates,xenial-security 2:4.3.11+dfsg-0ubuntu0.16.04.18 amd64 [upgradable from: 2:4.3.11+dfsg-0ubuntu0.16.04.17]
smbclient/xenial-updates,xenial-security 2:4.3.11+dfsg-0ubuntu0.16.04.18 amd64 [upgradable from: 2:4.3.11+dfsg-0ubuntu0.16.04.17]
sosreport/xenial-updates 3.6-1ubuntu0.16.04.2 amd64 [upgradable from: 3.5-1~ubuntu16.04.3]
systemd/xenial-updates,xenial-security 229-4ubuntu21.10 amd64 [upgradable from: 229-4ubuntu21.9]
systemd-sysv/xenial-updates,xenial-security 229-4ubuntu21.10 amd64 [upgradable from: 229-4ubuntu21.9]
ubuntu-release-upgrader-core/xenial-updates,xenial-updates 1:16.04.26 all [upgradable from: 1:16.04.25]
udev/xenial-updates,xenial-security 229-4ubuntu21.10 amd64 [upgradable from: 229-4ubuntu21.9]
winbind/xenial-updates,xenial-security 2:4.3.11+dfsg-0ubuntu0.16.04.18 amd64 [upgradable from: 2:4.3.11+dfsg-ubuntu0.16.04.17]
# apt update
Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2 http://kr.archive.ubuntu.com/ubuntu xenial InRelease
Temporary failure resolving 'kr.archive.ubuntu.com'
Err:3 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease
Temporary failure resolving 'kr.archive.ubuntu.com'
Err:4 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease
Temporary failure resolving 'kr.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
37 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'kr.archive.ubuntu.com'
W: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'kr.archive.ubuntu.com'
W: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'kr.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
#
/etc/resolv.conf 화일을 바꾸어도 안되고, /etc/apt/sources.list 에서 주소를 바꾸어도 안되고,,,
결국은, 아래 사이트 에서 제시한 것 처럼,
$ vi /etc/network/interfaces
# The primary network interface
auto enp0s9
iface enp0s9 inet static
address 10.11.12.11
netmask 255.255.255.0
network 10.11.12.0
gateway 10.11.12.1
broadcast 10.11.12.255
dns-nameservers 8.8.8.8 8.8.4.4
적색 표시된 것 처럼, dns-nameservers 8.8.8.8 8.8.4.4 를 추가한 후에 정상적으로 진행된다.
gateway 설정은 덤,
즐 ubuntu 하시길,,,
출처: https://notpeelbean.tistory.com/entry/linux-Ubuntu-업데이트-서버-연결-에러-aptget-update-에러 [Storm Of Two Yellow Beans]
* mate-desktop-environment 로 rdp 설정
sudo apt install xrdp
sudo apt install mate-core mate-desktop-environment mate-notification-daemon
sed -i.bak '/fi/a #xrdp multiple users configuration \n mate-session \n' /etc/xrdp/startwm.sh
cat /etc/xrdp/startwm.sh
# xrdp X session start script (c) 2015, 2017 mirabilos # published under The MirOS Licence if test -r /etc/profile; then . /etc/profile fi #xrdp multiple users configuration mate-session if test -r /etc/default/locale; then . /etc/default/locale test -z "${LANG+x}" || export LANG test -z "${LANGUAGE+x}" || export LANGUAGE test -z "${LC_ADDRESS+x}" || export LC_ADDRESS test -z "${LC_ALL+x}" || export LC_ALL test -z "${LC_COLLATE+x}" || export LC_COLLATE test -z "${LC_CTYPE+x}" || export LC_CTYPE test -z "${LC_IDENTIFICATION+x}" || export LC_IDENTIFICATION test -z "${LC_MEASUREMENT+x}" || export LC_MEASUREMENT test -z "${LC_MESSAGES+x}" || export LC_MESSAGES test -z "${LC_MONETARY+x}" || export LC_MONETARY test -z "${LC_NAME+x}" || export LC_NAME test -z "${LC_NUMERIC+x}" || export LC_NUMERIC test -z "${LC_PAPER+x}" || export LC_PAPER test -z "${LC_TELEPHONE+x}" || export LC_TELEPHONE test -z "${LC_TIME+x}" || export LC_TIME test -z "${LOCPATH+x}" || export LOCPATH fi #xrdp multiple users configuration mate-session if test -r /etc/profile; then . /etc/profile fi #xrdp multiple users configuration mate-session test -x /etc/X11/Xsession && exec /etc/X11/Xsession exec /bin/sh /etc/X11/Xsession |
sudo apt install xserver-xorg-core xorgxrdp
cat /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla
[Allow Colord all Users] Identity=unix-user:* Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile ResultAny=no ResultInactive=no ResultActive=yes |
sudo apt-get install gnome-tweak-tool
sudo systemctl enable xrdp
> 이제 windows의 원격데스크탑으로 log in 하면
ID, password를 넣으면 끝.
* 참고로 ubuntu 설치하면 우선 작업하는 것들
apt update
apt upgrade
apt autoremove
apt install vim
apt install ssh
vi /etc/ssh/sshd_config
# Authentication: #LoginGraceTime 2m #PermitRootLogin prohibit-password PermitRootLogin yes #StrictModes yes #MaxAuthTries 6 #MaxSessions 10 #PubkeyAuthentication yes |
간만에 오래된 프로젝트를 정리해야 하는데, 오류 발생
실행화일은 만들어졌는데, mt.exe 에서 오류가 발생하였다. 오류를 자세하게 표시하도록 하면,
1>"S:\6.sw\local_svn\trunk\v1\-\-\-\-.vcxproj" 프로젝트의 "C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets" 파일에 있는 "Manifest: (대상 ID:72)" 대상("_Manifest" 대상이 종속됨): 1>조건이 잘못되어 "Delete" 작업을 건너뜁니다. (('$(BuildType)' != 'Build' or '$(ForceRebuild)' == 'true') and '$(EmbedManifestby)'=='LINK')이(가) (('Build' != 'Build' or '' == 'true') and 'MT'=='LINK')(으)로 확인되었습니다. 1>"Microsoft.Build.CppTasks.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 어셈블리에서 "Mt" 작업을 사용합니다. 1>"Mt" 작업(작업 ID:30) 1> 추적 명령:(작업 ID:30) 1> c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\Tracker.exe /d C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\FileTracker.dll /i "S:\6.sw\local_svn\trunk\v1\-\-\-\Release" /r "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\MANIFEST\DPIAWARE.MANIFEST|S:\6.SW\LOCAL_SVN\TRUNK\V1\-\-\-\RELEASE\-.EXE.INTERMEDIATE.MANIFEST" /b MSBuildConsole_CancelEvent4fb8122f2e474f9fa82ed059c8d8e7d6 /c "c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\mt.exe" /nologo /verbose /outputresource:"S:\6.sw\local_svn\trunk\v1\-\-\-\Release\-.exe;#1" /manifest Release\-.exe.intermediate.manifest "c:\Program Files\Microsoft Visual Studio 10.0\VC\Include\Manifest\dpiaware.manifest"(작업 ID:30) 1> (작업 ID:30) 1>mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "S:\6.sw\local_svn\trunk\v1\5i$0\58 \-\Release\-.exe". \$\ ,$ (작업 ID:30) 1> 명령이 종료되었습니다(코드: 31).(작업 ID:30) 1>"Mt" 작업을 실행했습니다. - 실패(작업 ID:30) 1>"-.vcxproj" 프로젝트에 "Manifest" 대상을 빌드했습니다. - 실패: (대상 ID:72) |
오류 상황과 관련된 온갖 인터넷을 모두 뒤져 보았지만,,,, 모두 실패하였으나,
바로 이것, 증분 링크 사용을 "예" 로 변경 한 후, 바로 다음과 같이,
다시 rebuild 한 후, OK
참 이상하죠?
어차피 무시될 설정인데....
여하튼 OK가 되니 이것으로 모든 프로젝트를 정리한다.
참, 폴더가 원격폴더 입니다. S: 라는 drive는 subst 명령을 사용하여 논리드라이브로 만든 것입니다.
> subst S: "\\vmware-host\Shared Folders\Dens"
Local drive에서는 발생하지 않더군요.