맥에서는 sasm 설치가 어렵다고해서 버추얼박스로 우분투설치해서 학습진행

20.04lts버전(현 최신 안정화버전) 으로 설치하였는데 

도서에서는 18.0.4 버전으로 하고있다....

 

별 생각없이 다운로드했는데 sasm버전에서 부터 막힘. 아마 지원최신 버전이 19버전까지인것으로 보인다.

 

1일차에서 진행하다가 제대로 안되면 18버전으로 다시 설치해서 진행해볼 예정

 

환경 설치부분 입력하는 명령어.

sudo apt-get update

sudo apt-get -f install

sudo apt-get install nasm

sudo apt-get install gcc-multilib

sudo apt - fix-broken install

sudo apt-get install qt4-default

sudo dpkg -i sasm_3.9.0_amd64.deb

 

문제발생

19page,

sudo apt - fix-broken install 이라고 적힌 부분이 없는 명령어라고 뜸

검색해보니 sudo apt --fix-borken install 로 추측됨 

검색시 깨진 의존성 문제를 해결할때 쓴다는데 ide설치하는데 왜 이런게필요할지 모르겠음. 일단 변경한 부분으로 진행

 

sudo apt-get install qt4-default 에서 문제발생

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package qt4-default is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'qt4-default' has no installation candidate

 

최신버전의 우분투를 설치해서 그런건가 그래서

qt5-default를 설치해봄

 

qt4에 있는 라이브러리를 사용할거라서 설치한것일거 같은데

qt5를 설치해도 될지는 의문

 

 

20page

sudo dpkg -i sasm_3.9.0_amd64.deb 부분에서 오류 발생

가장 최신버전으로 sudo dpkg -i sasm_3.11.1_amd64.deb로 실행했음.

sasm depends on libqt4-network (>= 4:4.7.0); however:
Package libqt4-network is not installed.
sasm depends on libqtcore4 (>= 4:4.7.0); however:
Package libqtcore4 is not installed.
sasm depends on libqtgui4 (>= 4:4.8.0); however:
Package libqtgui4 is not installed.

 

qt4-default 를 설치하지않아 발생한 문제로 예상중.....;;

 

qt4-default는 설치하지 못해서 그냥 없다고 말하는 라이브러리를 하나하나 설치해볼 예정

설치가 같은 내용으로 설치가 안됨

 

의존성 문제 해결이라고 부분을 다시 입력해봄

sudo apt -f install

 

뭔가 고쳐지는듯 보이나 여전히 설치가 안됨

 

qt4-default를 설치해보는 방안을 찾는중

sudo apt-add-repository ppa:rock-core/qt4

sudo apt update

sudo apt install qt4-default

로 진행하라는 글을발견 

 

qt4-default가 설치가 된듯 보이나 sudo apt --fix-broken install을 입력하라는 경고가 뜸

 

진행.

 

 

여전히 sudo dpkg -i sasm_3.11.1_amd64.deb 가 안됨.

 

우분투 18.04버전을 다운로드 걸어놓고 내일 재 진행 예정

 

 

1일차 진행했던 터미널 내용

더보기

wi@wi-VirtualBox:~$ apt-get update
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
wi@wi-VirtualBox:~$ sudo apt-get update
[sudo] password for wi:
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 http://kr.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://kr.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://kr.archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
wi@wi-VirtualBox:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 169 not upgraded.
wi@wi-VirtualBox:~$ sudo apt-get install nasm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nasm
0 upgraded, 1 newly installed, 0 to remove and 169 not upgraded.
Need to get 362 kB of archives.
After this operation, 3,374 kB of additional disk space will be used.
Get:1 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 nasm amd64 2.14.02-1 [362 kB]
Fetched 362 kB in 2s (208 kB/s)
Selecting previously unselected package nasm.
(Reading database ... 178834 files and directories currently installed.)
Preparing to unpack .../nasm_2.14.02-1_amd64.deb ...
Unpacking nasm (2.14.02-1) ...
Setting up nasm (2.14.02-1) ...
Processing triggers for man-db (2.9.1-1) ...
wi@wi-VirtualBox:~$ sudo apt-get install gcc-multilib
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu gcc gcc-9 gcc-9-multilib
lib32asan5 lib32atomic1 lib32gcc-9-dev lib32gcc-s1 lib32gcc1 lib32gomp1
lib32itm1 lib32quadmath0 lib32stdc++6 lib32ubsan1 libasan5 libatomic1
libbinutils libc-dev-bin libc6-dev libc6-dev-i386 libc6-dev-x32 libc6-i386
libc6-x32 libcrypt-dev libctf-nobfd0 libctf0 libgcc-9-dev libitm1 liblsan0
libquadmath0 libtsan0 libubsan1 libx32asan5 libx32atomic1 libx32gcc-9-dev
libx32gcc-s1 libx32gcc1 libx32gomp1 libx32itm1 libx32quadmath0 libx32stdc++6
libx32ubsan1 linux-libc-dev manpages-dev
Suggested packages:
binutils-doc make autoconf automake libtool flex bison gcc-doc gcc-9-doc
gcc-9-locales glibc-doc
The following NEW packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu gcc gcc-9 gcc-9-multilib
gcc-multilib lib32asan5 lib32atomic1 lib32gcc-9-dev lib32gcc-s1 lib32gcc1
lib32gomp1 lib32itm1 lib32quadmath0 lib32stdc++6 lib32ubsan1 libasan5
libatomic1 libbinutils libc-dev-bin libc6-dev libc6-dev-i386 libc6-dev-x32
libc6-i386 libc6-x32 libcrypt-dev libctf-nobfd0 libctf0 libgcc-9-dev libitm1
liblsan0 libquadmath0 libtsan0 libubsan1 libx32asan5 libx32atomic1
libx32gcc-9-dev libx32gcc-s1 libx32gcc1 libx32gomp1 libx32itm1
libx32quadmath0 libx32stdc++6 libx32ubsan1 linux-libc-dev manpages-dev
0 upgraded, 47 newly installed, 0 to remove and 169 not upgraded.
Need to get 36.7 MB of archives.
After this operation, 174 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 binutils-common amd64 2.34-6ubuntu1 [207 kB]
Get:2 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libbinutils amd64 2.34-6ubuntu1 [474 kB]
Get:3 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libctf-nobfd0 amd64 2.34-6ubuntu1 [47.0 kB]
Get:4 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libctf0 amd64 2.34-6ubuntu1 [46.6 kB]
Get:5 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 binutils-x86-64-linux-gnu amd64 2.34-6ubuntu1 [1,614 kB]
Get:6 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 binutils amd64 2.34-6ubuntu1 [3,376 B]
Get:7 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libitm1 amd64 10-20200411-0ubuntu1 [26.3 kB]
Get:8 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libatomic1 amd64 10-20200411-0ubuntu1 [9,284 B]
Get:9 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libasan5 amd64 9.3.0-10ubuntu2 [395 kB]
Get:10 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 liblsan0 amd64 10-20200411-0ubuntu1 [144 kB]
Get:11 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libtsan0 amd64 10-20200411-0ubuntu1 [319 kB]
Get:12 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libubsan1 amd64 10-20200411-0ubuntu1 [136 kB]
Get:13 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libquadmath0 amd64 10-20200411-0ubuntu1 [146 kB]
Get:14 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libgcc-9-dev amd64 9.3.0-10ubuntu2 [2,359 kB]
Get:15 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 gcc-9 amd64 9.3.0-10ubuntu2 [8,234 kB]
Get:16 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 gcc amd64 4:9.3.0-1ubuntu2 [5,208 B]
Get:17 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libc6-i386 amd64 2.31-0ubuntu9 [2,723 kB]
Get:18 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libc-dev-bin amd64 2.31-0ubuntu9 [71.8 kB]
Get:19 http://kr.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-libc-dev amd64 5.4.0-37.41 [1,103 kB]
Get:20 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libcrypt-dev amd64 1:4.4.10-10ubuntu4 [104 kB]
Get:21 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libc6-dev amd64 2.31-0ubuntu9 [2,520 kB]
Get:22 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libc6-dev-i386 amd64 2.31-0ubuntu9 [1,902 kB]
Get:23 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libc6-x32 amd64 2.31-0ubuntu9 [2,777 kB]
Get:24 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libc6-dev-x32 amd64 2.31-0ubuntu9 [1,978 kB]
Get:25 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 lib32gcc-s1 amd64 10-20200411-0ubuntu1 [49.6 kB]
Get:26 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libx32gcc-s1 amd64 10-20200411-0ubuntu1 [41.4 kB]
Get:27 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 lib32gomp1 amd64 10-20200411-0ubuntu1 [109 kB]
Get:28 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libx32gomp1 amd64 10-20200411-0ubuntu1 [102 kB]
Get:29 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 lib32itm1 amd64 10-20200411-0ubuntu1 [28.3 kB]
Get:30 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libx32itm1 amd64 10-20200411-0ubuntu1 [26.7 kB]
Get:31 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 lib32atomic1 amd64 10-20200411-0ubuntu1 [8,864 B]
Get:32 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libx32atomic1 amd64 10-20200411-0ubuntu1 [9,288 B]
Get:33 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 lib32asan5 amd64 9.3.0-10ubuntu2 [411 kB]
Get:34 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libx32asan5 amd64 9.3.0-10ubuntu2 [387 kB]
Get:35 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 lib32gcc1 amd64 1:10-20200411-0ubuntu1 [1,132 B]
Get:36 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 lib32stdc++6 amd64 10-20200411-0ubuntu1 [525 kB]
Get:37 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 lib32ubsan1 amd64 10-20200411-0ubuntu1 [153 kB]
Get:38 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libx32gcc1 amd64 1:10-20200411-0ubuntu1 [996 B]
Get:39 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libx32stdc++6 amd64 10-20200411-0ubuntu1 [486 kB]
Get:40 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libx32ubsan1 amd64 10-20200411-0ubuntu1 [137 kB]
Get:41 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 lib32quadmath0 amd64 10-20200411-0ubuntu1 [231 kB]
Get:42 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libx32quadmath0 amd64 10-20200411-0ubuntu1 [149 kB]
Get:43 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 lib32gcc-9-dev amd64 9.3.0-10ubuntu2 [2,225 kB]
Get:44 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libx32gcc-9-dev amd64 9.3.0-10ubuntu2 [2,008 kB]
Get:45 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 gcc-9-multilib amd64 9.3.0-10ubuntu2 [1,056 B]
Get:46 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 gcc-multilib amd64 4:9.3.0-1ubuntu2 [1,516 B]
Get:47 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 manpages-dev all 5.05-1 [2,266 kB]
Fetched 36.7 MB in 16s (2,245 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package binutils-common:amd64.
(Reading database ... 178859 files and directories currently installed.)
Preparing to unpack .../00-binutils-common_2.34-6ubuntu1_amd64.deb ...
Unpacking binutils-common:amd64 (2.34-6ubuntu1) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../01-libbinutils_2.34-6ubuntu1_amd64.deb ...
Unpacking libbinutils:amd64 (2.34-6ubuntu1) ...
Selecting previously unselected package libctf-nobfd0:amd64.
Preparing to unpack .../02-libctf-nobfd0_2.34-6ubuntu1_amd64.deb ...
Unpacking libctf-nobfd0:amd64 (2.34-6ubuntu1) ...
Selecting previously unselected package libctf0:amd64.
Preparing to unpack .../03-libctf0_2.34-6ubuntu1_amd64.deb ...
Unpacking libctf0:amd64 (2.34-6ubuntu1) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../04-binutils-x86-64-linux-gnu_2.34-6ubuntu1_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.34-6ubuntu1) ...
Selecting previously unselected package binutils.
Preparing to unpack .../05-binutils_2.34-6ubuntu1_amd64.deb ...
Unpacking binutils (2.34-6ubuntu1) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../06-libitm1_10-20200411-0ubuntu1_amd64.deb ...
Unpacking libitm1:amd64 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../07-libatomic1_10-20200411-0ubuntu1_amd64.deb ...
Unpacking libatomic1:amd64 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libasan5:amd64.
Preparing to unpack .../08-libasan5_9.3.0-10ubuntu2_amd64.deb ...
Unpacking libasan5:amd64 (9.3.0-10ubuntu2) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../09-liblsan0_10-20200411-0ubuntu1_amd64.deb ...
Unpacking liblsan0:amd64 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../10-libtsan0_10-20200411-0ubuntu1_amd64.deb ...
Unpacking libtsan0:amd64 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../11-libubsan1_10-20200411-0ubuntu1_amd64.deb ...
Unpacking libubsan1:amd64 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../12-libquadmath0_10-20200411-0ubuntu1_amd64.deb ...
Unpacking libquadmath0:amd64 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libgcc-9-dev:amd64.
Preparing to unpack .../13-libgcc-9-dev_9.3.0-10ubuntu2_amd64.deb ...
Unpacking libgcc-9-dev:amd64 (9.3.0-10ubuntu2) ...
Selecting previously unselected package gcc-9.
Preparing to unpack .../14-gcc-9_9.3.0-10ubuntu2_amd64.deb ...
Unpacking gcc-9 (9.3.0-10ubuntu2) ...
Selecting previously unselected package gcc.
Preparing to unpack .../15-gcc_4%3a9.3.0-1ubuntu2_amd64.deb ...
Unpacking gcc (4:9.3.0-1ubuntu2) ...
Selecting previously unselected package libc6-i386.
Preparing to unpack .../16-libc6-i386_2.31-0ubuntu9_amd64.deb ...
Unpacking libc6-i386 (2.31-0ubuntu9) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../17-libc-dev-bin_2.31-0ubuntu9_amd64.deb ...
Unpacking libc-dev-bin (2.31-0ubuntu9) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../18-linux-libc-dev_5.4.0-37.41_amd64.deb ...
Unpacking linux-libc-dev:amd64 (5.4.0-37.41) ...
Selecting previously unselected package libcrypt-dev:amd64.
Preparing to unpack .../19-libcrypt-dev_1%3a4.4.10-10ubuntu4_amd64.deb ...
Unpacking libcrypt-dev:amd64 (1:4.4.10-10ubuntu4) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../20-libc6-dev_2.31-0ubuntu9_amd64.deb ...
Unpacking libc6-dev:amd64 (2.31-0ubuntu9) ...
Selecting previously unselected package libc6-dev-i386.
Preparing to unpack .../21-libc6-dev-i386_2.31-0ubuntu9_amd64.deb ...
Unpacking libc6-dev-i386 (2.31-0ubuntu9) ...
Selecting previously unselected package libc6-x32.
Preparing to unpack .../22-libc6-x32_2.31-0ubuntu9_amd64.deb ...
Unpacking libc6-x32 (2.31-0ubuntu9) ...
Selecting previously unselected package libc6-dev-x32.
Preparing to unpack .../23-libc6-dev-x32_2.31-0ubuntu9_amd64.deb ...
Unpacking libc6-dev-x32 (2.31-0ubuntu9) ...
Selecting previously unselected package lib32gcc-s1.
Preparing to unpack .../24-lib32gcc-s1_10-20200411-0ubuntu1_amd64.deb ...
Unpacking lib32gcc-s1 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libx32gcc-s1.
Preparing to unpack .../25-libx32gcc-s1_10-20200411-0ubuntu1_amd64.deb ...
Unpacking libx32gcc-s1 (10-20200411-0ubuntu1) ...
Selecting previously unselected package lib32gomp1.
Preparing to unpack .../26-lib32gomp1_10-20200411-0ubuntu1_amd64.deb ...
Unpacking lib32gomp1 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libx32gomp1.
Preparing to unpack .../27-libx32gomp1_10-20200411-0ubuntu1_amd64.deb ...
Unpacking libx32gomp1 (10-20200411-0ubuntu1) ...
Selecting previously unselected package lib32itm1.
Preparing to unpack .../28-lib32itm1_10-20200411-0ubuntu1_amd64.deb ...
Unpacking lib32itm1 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libx32itm1.
Preparing to unpack .../29-libx32itm1_10-20200411-0ubuntu1_amd64.deb ...
Unpacking libx32itm1 (10-20200411-0ubuntu1) ...
Selecting previously unselected package lib32atomic1.
Preparing to unpack .../30-lib32atomic1_10-20200411-0ubuntu1_amd64.deb ...
Unpacking lib32atomic1 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libx32atomic1.
Preparing to unpack .../31-libx32atomic1_10-20200411-0ubuntu1_amd64.deb ...
Unpacking libx32atomic1 (10-20200411-0ubuntu1) ...
Selecting previously unselected package lib32asan5.
Preparing to unpack .../32-lib32asan5_9.3.0-10ubuntu2_amd64.deb ...
Unpacking lib32asan5 (9.3.0-10ubuntu2) ...
Selecting previously unselected package libx32asan5.
Preparing to unpack .../33-libx32asan5_9.3.0-10ubuntu2_amd64.deb ...
Unpacking libx32asan5 (9.3.0-10ubuntu2) ...
Selecting previously unselected package lib32gcc1.
Preparing to unpack .../34-lib32gcc1_1%3a10-20200411-0ubuntu1_amd64.deb ...
Unpacking lib32gcc1 (1:10-20200411-0ubuntu1) ...
Selecting previously unselected package lib32stdc++6.
Preparing to unpack .../35-lib32stdc++6_10-20200411-0ubuntu1_amd64.deb ...
Unpacking lib32stdc++6 (10-20200411-0ubuntu1) ...
Selecting previously unselected package lib32ubsan1.
Preparing to unpack .../36-lib32ubsan1_10-20200411-0ubuntu1_amd64.deb ...
Unpacking lib32ubsan1 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libx32gcc1.
Preparing to unpack .../37-libx32gcc1_1%3a10-20200411-0ubuntu1_amd64.deb ...
Unpacking libx32gcc1 (1:10-20200411-0ubuntu1) ...
Selecting previously unselected package libx32stdc++6.
Preparing to unpack .../38-libx32stdc++6_10-20200411-0ubuntu1_amd64.deb ...
Unpacking libx32stdc++6 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libx32ubsan1.
Preparing to unpack .../39-libx32ubsan1_10-20200411-0ubuntu1_amd64.deb ...
Unpacking libx32ubsan1 (10-20200411-0ubuntu1) ...
Selecting previously unselected package lib32quadmath0.
Preparing to unpack .../40-lib32quadmath0_10-20200411-0ubuntu1_amd64.deb ...
Unpacking lib32quadmath0 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libx32quadmath0.
Preparing to unpack .../41-libx32quadmath0_10-20200411-0ubuntu1_amd64.deb ...
Unpacking libx32quadmath0 (10-20200411-0ubuntu1) ...
Selecting previously unselected package lib32gcc-9-dev.
Preparing to unpack .../42-lib32gcc-9-dev_9.3.0-10ubuntu2_amd64.deb ...
Unpacking lib32gcc-9-dev (9.3.0-10ubuntu2) ...
Selecting previously unselected package libx32gcc-9-dev.
Preparing to unpack .../43-libx32gcc-9-dev_9.3.0-10ubuntu2_amd64.deb ...
Unpacking libx32gcc-9-dev (9.3.0-10ubuntu2) ...
Selecting previously unselected package gcc-9-multilib.
Preparing to unpack .../44-gcc-9-multilib_9.3.0-10ubuntu2_amd64.deb ...
Unpacking gcc-9-multilib (9.3.0-10ubuntu2) ...
Selecting previously unselected package gcc-multilib.
Preparing to unpack .../45-gcc-multilib_4%3a9.3.0-1ubuntu2_amd64.deb ...
Unpacking gcc-multilib (4:9.3.0-1ubuntu2) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../46-manpages-dev_5.05-1_all.deb ...
Unpacking manpages-dev (5.05-1) ...
Setting up manpages-dev (5.05-1) ...
Setting up binutils-common:amd64 (2.34-6ubuntu1) ...
Setting up linux-libc-dev:amd64 (5.4.0-37.41) ...
Setting up libctf-nobfd0:amd64 (2.34-6ubuntu1) ...
Setting up libc6-x32 (2.31-0ubuntu9) ...
Setting up libasan5:amd64 (9.3.0-10ubuntu2) ...
Setting up libquadmath0:amd64 (10-20200411-0ubuntu1) ...
Setting up libatomic1:amd64 (10-20200411-0ubuntu1) ...
Setting up libx32gomp1 (10-20200411-0ubuntu1) ...
Setting up libubsan1:amd64 (10-20200411-0ubuntu1) ...
Setting up libcrypt-dev:amd64 (1:4.4.10-10ubuntu4) ...
Setting up libc6-i386 (2.31-0ubuntu9) ...
Setting up libx32quadmath0 (10-20200411-0ubuntu1) ...
Setting up libbinutils:amd64 (2.34-6ubuntu1) ...
Setting up libc-dev-bin (2.31-0ubuntu9) ...
Setting up lib32atomic1 (10-20200411-0ubuntu1) ...
Setting up liblsan0:amd64 (10-20200411-0ubuntu1) ...
Setting up libitm1:amd64 (10-20200411-0ubuntu1) ...
Setting up libtsan0:amd64 (10-20200411-0ubuntu1) ...
Setting up libx32atomic1 (10-20200411-0ubuntu1) ...
Setting up libctf0:amd64 (2.34-6ubuntu1) ...
Setting up lib32itm1 (10-20200411-0ubuntu1) ...
Setting up libx32gcc-s1 (10-20200411-0ubuntu1) ...
Setting up libx32itm1 (10-20200411-0ubuntu1) ...
Setting up libgcc-9-dev:amd64 (9.3.0-10ubuntu2) ...
Setting up lib32gomp1 (10-20200411-0ubuntu1) ...
Setting up lib32gcc-s1 (10-20200411-0ubuntu1) ...
Setting up libx32asan5 (9.3.0-10ubuntu2) ...
Setting up lib32quadmath0 (10-20200411-0ubuntu1) ...
Setting up libc6-dev:amd64 (2.31-0ubuntu9) ...
Setting up lib32asan5 (9.3.0-10ubuntu2) ...
Setting up libx32gcc1 (1:10-20200411-0ubuntu1) ...
Setting up binutils-x86-64-linux-gnu (2.34-6ubuntu1) ...
Setting up libx32stdc++6 (10-20200411-0ubuntu1) ...
Setting up libc6-dev-i386 (2.31-0ubuntu9) ...
Setting up libx32ubsan1 (10-20200411-0ubuntu1) ...
Setting up binutils (2.34-6ubuntu1) ...
Setting up lib32gcc1 (1:10-20200411-0ubuntu1) ...
Setting up libc6-dev-x32 (2.31-0ubuntu9) ...
Setting up lib32stdc++6 (10-20200411-0ubuntu1) ...
Setting up gcc-9 (9.3.0-10ubuntu2) ...
Setting up lib32ubsan1 (10-20200411-0ubuntu1) ...
Setting up gcc (4:9.3.0-1ubuntu2) ...
Setting up lib32gcc-9-dev (9.3.0-10ubuntu2) ...
Setting up libx32gcc-9-dev (9.3.0-10ubuntu2) ...
Setting up gcc-9-multilib (9.3.0-10ubuntu2) ...
Setting up gcc-multilib (4:9.3.0-1ubuntu2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
wi@wi-VirtualBox:~$ sudo apt - fix-broken install
E: Invalid operation fix-broken
wi@wi-VirtualBox:~$ sudo apt -fix-broken install
E: Command line option 'i' [from -fix-broken] is not understood in combination with the other options.
wi@wi-VirtualBox:~$ sudo apt -fix broken install
E: Command line option 'i' [from -fix] is not understood in combination with the other options.
wi@wi-VirtualBox:~$ sudo apt -fix -broken install
E: Command line option 'i' [from -fix] is not understood in combination with the other options.
wi@wi-VirtualBox:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 169 not upgraded.
wi@wi-VirtualBox:~$ sudo apt-get install qt4-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package qt4-default is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'qt4-default' has no installation candidate
wi@wi-VirtualBox:~$ sudo apt-get install qt4-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package qt4-default is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'qt4-default' has no installation candidate
wi@wi-VirtualBox:~$ sudo apt-get install qt5-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libdouble-conversion3 libegl-dev libgl-dev libglu1-mesa-dev libglx-dev
libpcre2-16-0 libpthread-stubs0-dev libqt5concurrent5 libqt5core5a
libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5 libqt5opengl5-dev
libqt5printsupport5 libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5test5
libqt5widgets5 libqt5xml5 libvulkan-dev libx11-dev libxau-dev
libxcb-xinerama0 libxcb-xinput0 libxcb1-dev libxdmcp-dev libxext-dev
qt5-gtk-platformtheme qt5-qmake qt5-qmake-bin qtbase5-dev qtbase5-dev-tools
qtchooser qttranslations5-l10n x11proto-core-dev x11proto-dev
x11proto-xext-dev xorg-sgml-doctools xtrans-dev
Suggested packages:
qt5-image-formats-plugins qtwayland5 libx11-doc libxcb-doc libxext-doc
default-libmysqlclient-dev firebird-dev libpq-dev libsqlite3-dev
unixodbc-dev
The following NEW packages will be installed:
libdouble-conversion3 libegl-dev libgl-dev libglu1-mesa-dev libglx-dev
libpcre2-16-0 libpthread-stubs0-dev libqt5concurrent5 libqt5core5a
libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5 libqt5opengl5-dev
libqt5printsupport5 libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5test5
libqt5widgets5 libqt5xml5 libvulkan-dev libx11-dev libxau-dev
libxcb-xinerama0 libxcb-xinput0 libxcb1-dev libxdmcp-dev libxext-dev
qt5-default qt5-gtk-platformtheme qt5-qmake qt5-qmake-bin qtbase5-dev
qtbase5-dev-tools qtchooser qttranslations5-l10n x11proto-core-dev
x11proto-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev
0 upgraded, 42 newly installed, 0 to remove and 169 not upgraded.
Need to get 16.2 MB of archives.
After this operation, 85.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libdouble-conversion3 amd64 3.1.5-4ubuntu1 [37.9 kB]
Get:2 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libpcre2-16-0 amd64 10.34-7 [181 kB]
Get:3 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5core5a amd64 5.12.8+dfsg-0ubuntu1 [2,005 kB]
Get:4 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5dbus5 amd64 5.12.8+dfsg-0ubuntu1 [208 kB]
Get:5 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5network5 amd64 5.12.8+dfsg-0ubuntu1 [674 kB]
Get:6 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libxcb-xinerama0 amd64 1.14-2 [5,260 B]
Get:7 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libxcb-xinput0 amd64 1.14-2 [29.3 kB]
Get:8 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5gui5 amd64 5.12.8+dfsg-0ubuntu1 [2,971 kB]
Get:9 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5widgets5 amd64 5.12.8+dfsg-0ubuntu1 [2,293 kB]
Get:10 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5svg5 amd64 5.12.8-0ubuntu1 [131 kB]
Get:11 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 xorg-sgml-doctools all 1:1.11-1 [12.9 kB]
Get:12 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 x11proto-dev all 2019.2-1ubuntu1 [594 kB]
Get:13 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 x11proto-core-dev all 2019.2-1ubuntu1 [2,620 B]
Get:14 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libxau-dev amd64 1:1.0.9-0ubuntu1 [9,552 B]
Get:15 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libxdmcp-dev amd64 1:1.1.3-0ubuntu1 [25.3 kB]
Get:16 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 xtrans-dev all 1.4.0-1 [68.9 kB]
Get:17 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libpthread-stubs0-dev amd64 0.4-1 [5,384 B]
Get:18 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libxcb1-dev amd64 1.14-2 [80.5 kB]
Get:19 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libx11-dev amd64 2:1.6.9-2ubuntu1 [646 kB]
Get:20 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libglx-dev amd64 1.3.1-1 [14.0 kB]
Get:21 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libgl-dev amd64 1.3.1-1 [97.8 kB]
Get:22 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libegl-dev amd64 1.3.1-1 [16.9 kB]
Get:23 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libglu1-mesa-dev amd64 9.0.1-1build1 [207 kB]
Get:24 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5concurrent5 amd64 5.12.8+dfsg-0ubuntu1 [33.5 kB]
Get:25 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5opengl5 amd64 5.12.8+dfsg-0ubuntu1 [136 kB]
Get:26 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5printsupport5 amd64 5.12.8+dfsg-0ubuntu1 [193 kB]
Get:27 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5sql5 amd64 5.12.8+dfsg-0ubuntu1 [121 kB]
Get:28 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5test5 amd64 5.12.8+dfsg-0ubuntu1 [131 kB]
Get:29 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5xml5 amd64 5.12.8+dfsg-0ubuntu1 [105 kB]
Get:30 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libvulkan-dev amd64 1.2.131.2-1 [482 kB]
Get:31 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 x11proto-xext-dev all 2019.2-1ubuntu1 [2,616 B]
Get:32 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libxext-dev amd64 2:1.3.4-0ubuntu1 [82.2 kB]
Get:33 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 qt5-qmake-bin amd64 5.12.8+dfsg-0ubuntu1 [990 kB]
Get:34 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 qtchooser amd64 66-2build1 [24.7 kB]
Get:35 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 qt5-qmake amd64 5.12.8+dfsg-0ubuntu1 [189 kB]
Get:36 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 qtbase5-dev-tools amd64 5.12.8+dfsg-0ubuntu1 [700 kB]
Get:37 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 qtbase5-dev amd64 5.12.8+dfsg-0ubuntu1 [991 kB]
Get:38 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5opengl5-dev amd64 5.12.8+dfsg-0ubuntu1 [39.8 kB]
Get:39 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5sql5-sqlite amd64 5.12.8+dfsg-0ubuntu1 [47.5 kB]
Get:40 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 qt5-default amd64 5.12.8+dfsg-0ubuntu1 [24.4 kB]
Get:41 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 qt5-gtk-platformtheme amd64 5.12.8+dfsg-0ubuntu1 [124 kB]
Get:42 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 qttranslations5-l10n all 5.12.8-0ubuntu1 [1,486 kB]
Fetched 16.2 MB in 8s (1,937 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package libdouble-conversion3:amd64.
(Reading database ... 183989 files and directories currently installed.)
Preparing to unpack .../00-libdouble-conversion3_3.1.5-4ubuntu1_amd64.deb ...
Unpacking libdouble-conversion3:amd64 (3.1.5-4ubuntu1) ...
Selecting previously unselected package libpcre2-16-0:amd64.
Preparing to unpack .../01-libpcre2-16-0_10.34-7_amd64.deb ...
Unpacking libpcre2-16-0:amd64 (10.34-7) ...
Selecting previously unselected package libqt5core5a:amd64.
Preparing to unpack .../02-libqt5core5a_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5core5a:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package libqt5dbus5:amd64.
Preparing to unpack .../03-libqt5dbus5_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5dbus5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package libqt5network5:amd64.
Preparing to unpack .../04-libqt5network5_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5network5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package libxcb-xinerama0:amd64.
Preparing to unpack .../05-libxcb-xinerama0_1.14-2_amd64.deb ...
Unpacking libxcb-xinerama0:amd64 (1.14-2) ...
Selecting previously unselected package libxcb-xinput0:amd64.
Preparing to unpack .../06-libxcb-xinput0_1.14-2_amd64.deb ...
Unpacking libxcb-xinput0:amd64 (1.14-2) ...
Selecting previously unselected package libqt5gui5:amd64.
Preparing to unpack .../07-libqt5gui5_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5gui5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package libqt5widgets5:amd64.
Preparing to unpack .../08-libqt5widgets5_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5widgets5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package libqt5svg5:amd64.
Preparing to unpack .../09-libqt5svg5_5.12.8-0ubuntu1_amd64.deb ...
Unpacking libqt5svg5:amd64 (5.12.8-0ubuntu1) ...
Selecting previously unselected package xorg-sgml-doctools.
Preparing to unpack .../10-xorg-sgml-doctools_1%3a1.11-1_all.deb ...
Unpacking xorg-sgml-doctools (1:1.11-1) ...
Selecting previously unselected package x11proto-dev.
Preparing to unpack .../11-x11proto-dev_2019.2-1ubuntu1_all.deb ...
Unpacking x11proto-dev (2019.2-1ubuntu1) ...
Selecting previously unselected package x11proto-core-dev.
Preparing to unpack .../12-x11proto-core-dev_2019.2-1ubuntu1_all.deb ...
Unpacking x11proto-core-dev (2019.2-1ubuntu1) ...
Selecting previously unselected package libxau-dev:amd64.
Preparing to unpack .../13-libxau-dev_1%3a1.0.9-0ubuntu1_amd64.deb ...
Unpacking libxau-dev:amd64 (1:1.0.9-0ubuntu1) ...
Selecting previously unselected package libxdmcp-dev:amd64.
Preparing to unpack .../14-libxdmcp-dev_1%3a1.1.3-0ubuntu1_amd64.deb ...
Unpacking libxdmcp-dev:amd64 (1:1.1.3-0ubuntu1) ...
Selecting previously unselected package xtrans-dev.
Preparing to unpack .../15-xtrans-dev_1.4.0-1_all.deb ...
Unpacking xtrans-dev (1.4.0-1) ...
Selecting previously unselected package libpthread-stubs0-dev:amd64.
Preparing to unpack .../16-libpthread-stubs0-dev_0.4-1_amd64.deb ...
Unpacking libpthread-stubs0-dev:amd64 (0.4-1) ...
Selecting previously unselected package libxcb1-dev:amd64.
Preparing to unpack .../17-libxcb1-dev_1.14-2_amd64.deb ...
Unpacking libxcb1-dev:amd64 (1.14-2) ...
Selecting previously unselected package libx11-dev:amd64.
Preparing to unpack .../18-libx11-dev_2%3a1.6.9-2ubuntu1_amd64.deb ...
Unpacking libx11-dev:amd64 (2:1.6.9-2ubuntu1) ...
Selecting previously unselected package libglx-dev:amd64.
Preparing to unpack .../19-libglx-dev_1.3.1-1_amd64.deb ...
Unpacking libglx-dev:amd64 (1.3.1-1) ...
Selecting previously unselected package libgl-dev:amd64.
Preparing to unpack .../20-libgl-dev_1.3.1-1_amd64.deb ...
Unpacking libgl-dev:amd64 (1.3.1-1) ...
Selecting previously unselected package libegl-dev:amd64.
Preparing to unpack .../21-libegl-dev_1.3.1-1_amd64.deb ...
Unpacking libegl-dev:amd64 (1.3.1-1) ...
Selecting previously unselected package libglu1-mesa-dev:amd64.
Preparing to unpack .../22-libglu1-mesa-dev_9.0.1-1build1_amd64.deb ...
Unpacking libglu1-mesa-dev:amd64 (9.0.1-1build1) ...
Selecting previously unselected package libqt5concurrent5:amd64.
Preparing to unpack .../23-libqt5concurrent5_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5concurrent5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package libqt5opengl5:amd64.
Preparing to unpack .../24-libqt5opengl5_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5opengl5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package libqt5printsupport5:amd64.
Preparing to unpack .../25-libqt5printsupport5_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5printsupport5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package libqt5sql5:amd64.
Preparing to unpack .../26-libqt5sql5_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5sql5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package libqt5test5:amd64.
Preparing to unpack .../27-libqt5test5_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5test5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package libqt5xml5:amd64.
Preparing to unpack .../28-libqt5xml5_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5xml5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package libvulkan-dev:amd64.
Preparing to unpack .../29-libvulkan-dev_1.2.131.2-1_amd64.deb ...
Unpacking libvulkan-dev:amd64 (1.2.131.2-1) ...
Selecting previously unselected package x11proto-xext-dev.
Preparing to unpack .../30-x11proto-xext-dev_2019.2-1ubuntu1_all.deb ...
Unpacking x11proto-xext-dev (2019.2-1ubuntu1) ...
Selecting previously unselected package libxext-dev:amd64.
Preparing to unpack .../31-libxext-dev_2%3a1.3.4-0ubuntu1_amd64.deb ...
Unpacking libxext-dev:amd64 (2:1.3.4-0ubuntu1) ...
Selecting previously unselected package qt5-qmake-bin.
Preparing to unpack .../32-qt5-qmake-bin_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking qt5-qmake-bin (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package qtchooser.
Preparing to unpack .../33-qtchooser_66-2build1_amd64.deb ...
Unpacking qtchooser (66-2build1) ...
Selecting previously unselected package qt5-qmake:amd64.
Preparing to unpack .../34-qt5-qmake_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking qt5-qmake:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package qtbase5-dev-tools.
Preparing to unpack .../35-qtbase5-dev-tools_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking qtbase5-dev-tools (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package qtbase5-dev:amd64.
Preparing to unpack .../36-qtbase5-dev_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking qtbase5-dev:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package libqt5opengl5-dev:amd64.
Preparing to unpack .../37-libqt5opengl5-dev_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5opengl5-dev:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package libqt5sql5-sqlite:amd64.
Preparing to unpack .../38-libqt5sql5-sqlite_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5sql5-sqlite:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package qt5-default:amd64.
Preparing to unpack .../39-qt5-default_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking qt5-default:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package qt5-gtk-platformtheme:amd64.
Preparing to unpack .../40-qt5-gtk-platformtheme_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking qt5-gtk-platformtheme:amd64 (5.12.8+dfsg-0ubuntu1) ...
Selecting previously unselected package qttranslations5-l10n.
Preparing to unpack .../41-qttranslations5-l10n_5.12.8-0ubuntu1_all.deb ...
Unpacking qttranslations5-l10n (5.12.8-0ubuntu1) ...
Setting up libdouble-conversion3:amd64 (3.1.5-4ubuntu1) ...
Setting up libvulkan-dev:amd64 (1.2.131.2-1) ...
Setting up libxcb-xinput0:amd64 (1.14-2) ...
Setting up libpthread-stubs0-dev:amd64 (0.4-1) ...
Setting up libpcre2-16-0:amd64 (10.34-7) ...
Setting up xtrans-dev (1.4.0-1) ...
Setting up libxcb-xinerama0:amd64 (1.14-2) ...
Setting up qttranslations5-l10n (5.12.8-0ubuntu1) ...
Setting up qt5-qmake-bin (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5core5a:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5dbus5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up xorg-sgml-doctools (1:1.11-1) ...
Setting up libqt5test5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5concurrent5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up qtchooser (66-2build1) ...
Setting up qt5-qmake:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5network5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5sql5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up qtbase5-dev-tools (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5xml5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5sql5-sqlite:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5gui5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5widgets5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up qt5-gtk-platformtheme:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5printsupport5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5opengl5:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5svg5:amd64 (5.12.8-0ubuntu1) ...
Processing triggers for sgml-base (1.29.1) ...
Setting up x11proto-dev (2019.2-1ubuntu1) ...
Setting up libxau-dev:amd64 (1:1.0.9-0ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for man-db (2.9.1-1) ...
Setting up libxdmcp-dev:amd64 (1:1.1.3-0ubuntu1) ...
Setting up x11proto-core-dev (2019.2-1ubuntu1) ...
Setting up x11proto-xext-dev (2019.2-1ubuntu1) ...
Setting up libxcb1-dev:amd64 (1.14-2) ...
Setting up libx11-dev:amd64 (2:1.6.9-2ubuntu1) ...
Setting up libxext-dev:amd64 (2:1.3.4-0ubuntu1) ...
Setting up libglx-dev:amd64 (1.3.1-1) ...
Setting up libgl-dev:amd64 (1.3.1-1) ...
Setting up libegl-dev:amd64 (1.3.1-1) ...
Setting up libglu1-mesa-dev:amd64 (9.0.1-1build1) ...
Setting up qtbase5-dev:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up qt5-default:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5opengl5-dev:amd64 (5.12.8+dfsg-0ubuntu1) ...
wi@wi-VirtualBox:~$ sudo dpkg -i sasm_3.11.1_amd63.deb
dpkg: error: cannot access archive 'sasm_3.11.1_amd63.deb': No such file or directory
wi@wi-VirtualBox:~$ sudo dpkg -i sasm_3.11.1_amd63.deb
dpkg: error: cannot access archive 'sasm_3.11.1_amd63.deb': No such file or directory
wi@wi-VirtualBox:~$ ls
Desktop Documents Downloads Music Pictures Public Templates Videos
wi@wi-VirtualBox:~$ cd Downloads
wi@wi-VirtualBox:~/Downloads$ ls
sasm_3.11.1_amd64.deb
wi@wi-VirtualBox:~/Downloads$ sudo dpkg -i sasm_3.11.1_amd63.deb
dpkg: error: cannot access archive 'sasm_3.11.1_amd63.deb': No such file or directory
wi@wi-VirtualBox:~/Downloads$ sudo dpkg -i sasm_3.11.1_amd64.deb
Selecting previously unselected package sasm.
(Reading database ... 187544 files and directories currently installed.)
Preparing to unpack sasm_3.11.1_amd64.deb ...
Unpacking sasm (3.11.1) ...
dpkg: dependency problems prevent configuration of sasm:
sasm depends on libqt4-network (>= 4:4.7.0); however:
Package libqt4-network is not installed.
sasm depends on libqtcore4 (>= 4:4.7.0); however:
Package libqtcore4 is not installed.
sasm depends on libqtgui4 (>= 4:4.8.0); however:
Package libqtgui4 is not installed.

dpkg: error processing package sasm (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Errors were encountered while processing:
sasm
wi@wi-VirtualBox:~/Downloads$ sudo apt-get install libqt4-network libqtcore4 libqtgui4
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libqtcore4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
qtchooser:i386 libqt5core5a:i386 qtchooser libqt5core5a

Package libqtgui4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libqt4-network is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libqt4-network' has no installation candidate
E: Package 'libqtcore4' has no installation candidate
E: Package 'libqtgui4' has no installation candidate
wi@wi-VirtualBox:~/Downloads$ sudo apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
sasm
Suggested packages:
intel2gas
The following packages will be upgraded:
sasm
1 upgraded, 0 newly installed, 0 to remove and 169 not upgraded.
1 not fully installed or removed.
Need to get 658 kB of archives.
After this operation, 1,620 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 sasm amd64 3.11.1-1 [658 kB]
Fetched 658 kB in 3s (205 kB/s)
(Reading database ... 187566 files and directories currently installed.)
Preparing to unpack .../sasm_3.11.1-1_amd64.deb ...
Unpacking sasm (3.11.1-1) over (3.11.1) ...
Setting up sasm (3.11.1-1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
wi@wi-VirtualBox:~/Downloads$ sudo dpkg -i sasm_3.11.1_amd64.deb
dpkg: warning: downgrading sasm from 3.11.1-1 to 3.11.1
(Reading database ... 187565 files and directories currently installed.)
Preparing to unpack sasm_3.11.1_amd64.deb ...
Unpacking sasm (3.11.1) over (3.11.1-1) ...
dpkg: dependency problems prevent configuration of sasm:
sasm depends on libqt4-network (>= 4:4.7.0); however:
Package libqt4-network is not installed.
sasm depends on libqtcore4 (>= 4:4.7.0); however:
Package libqtcore4 is not installed.
sasm depends on libqtgui4 (>= 4:4.8.0); however:
Package libqtgui4 is not installed.

dpkg: error processing package sasm (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
sasm
wi@wi-VirtualBox:~/Downloads$ sudo apt-get install libqt4-network libqtcore4 libqtgui4
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libqtcore4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
qtchooser:i386 libqt5core5a:i386 qtchooser libqt5core5a

Package libqtgui4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libqt4-network is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libqt4-network' has no installation candidate
E: Package 'libqtcore4' has no installation candidate
E: Package 'libqtgui4' has no installation candidate
wi@wi-VirtualBox:~/Downloads$ sudo apt-get install qt4-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package qt4-default is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'qt4-default' has no installation candidate
wi@wi-VirtualBox:~/Downloads$ sudo apt-get -f install qt4-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package qt4-default is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'qt4-default' has no installation candidate
wi@wi-VirtualBox:~/Downloads$ sudo apt-add-repository ppa:rock-core/qt4

More info: https://launchpad.net/~rock-core/+archive/ubuntu/qt4
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Hit:2 http://kr.archive.ubuntu.com/ubuntu focal InRelease
Get:3 http://ppa.launchpad.net/rock-core/qt4/ubuntu focal InRelease [18.0 kB]
Get:4 http://kr.archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [18.6 kB]
Get:6 http://ppa.launchpad.net/rock-core/qt4/ubuntu focal/main amd64 Packages [17.7 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [31.6 kB]
Get:8 http://kr.archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Get:9 http://kr.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [102 kB]
Get:10 http://kr.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [151 kB]
Get:11 http://ppa.launchpad.net/rock-core/qt4/ubuntu focal/main i386 Packages [1,232 B]
Get:12 http://kr.archive.ubuntu.com/ubuntu focal-backports/universe i386 Packages [1,948 B]
Get:13 http://kr.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [2,788 B]
Get:14 http://kr.archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [1,272 B]
Get:15 http://kr.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [532 B]
Get:16 http://kr.archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [188 B]
Get:17 http://ppa.launchpad.net/rock-core/qt4/ubuntu focal/main Translation-en [4,244 B]
Fetched 664 kB in 5s (135 kB/s)
Reading package lists... Done
wi@wi-VirtualBox:~/Downloads$ sudo apt update
Hit:1 http://kr.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://kr.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://kr.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:5 http://ppa.launchpad.net/rock-core/qt4/ubuntu focal InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
170 packages can be upgraded. Run 'apt list --upgradable' to see them.
wi@wi-VirtualBox:~/Downloads$ sudo apt install qt4-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
qt4-default : Depends: libqt4-dev but it is not going to be installed
Conflicts: qt5-default but 5.12.8+dfsg-0ubuntu1 is to be installed
qt5-default : Conflicts: qt4-default but 5:4.8.7+dfsg-7ubuntu4rock3 is to be installed
sasm : Depends: libqt4-network (>= 4:4.7.0) but it is not going to be installed
Depends: libqtcore4 (>= 4:4.7.0) but it is not going to be installed
Depends: libqtgui4 (>= 4:4.8.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
wi@wi-VirtualBox:~/Downloads$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
sasm
Suggested packages:
intel2gas
The following packages will be upgraded:
sasm
1 upgraded, 0 newly installed, 0 to remove and 169 not upgraded.
1 not fully installed or removed.
Need to get 658 kB of archives.
After this operation, 1,620 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 sasm amd64 3.11.1-1 [658 kB]
Fetched 658 kB in 2s (294 kB/s)
(Reading database ... 187566 files and directories currently installed.)
Preparing to unpack .../sasm_3.11.1-1_amd64.deb ...
Unpacking sasm (3.11.1-1) over (3.11.1) ...
Setting up sasm (3.11.1-1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
wi@wi-VirtualBox:~/Downloads$ sudo dpkg -i sasm_3.11.1_amd64.deb
dpkg: warning: downgrading sasm from 3.11.1-1 to 3.11.1
(Reading database ... 187565 files and directories currently installed.)
Preparing to unpack sasm_3.11.1_amd64.deb ...
Unpacking sasm (3.11.1) over (3.11.1-1) ...
dpkg: dependency problems prevent configuration of sasm:
sasm depends on libqt4-network (>= 4:4.7.0); however:
Package libqt4-network is not installed.
sasm depends on libqtcore4 (>= 4:4.7.0); however:
Package libqtcore4 is not installed.
sasm depends on libqtgui4 (>= 4:4.8.0); however:
Package libqtgui4 is not installed.

dpkg: error processing package sasm (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
sasm
wi@wi-VirtualBox:~/Downloads$ sudo apt-get install libqt4-network
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libqt4-network : Depends: libqtcore4 (= 5:4.8.7+dfsg-7ubuntu4rock7) but it is not going to be installed
Depends: libqtdbus4 (= 5:4.8.7+dfsg-7ubuntu4rock7) but it is not going to be installed
sasm : Depends: libqtcore4 (>= 4:4.7.0) but it is not going to be installed
Depends: libqtgui4 (>= 4:4.8.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
wi@wi-VirtualBox:~/Downloads$ apt --fix-broken install
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
wi@wi-VirtualBox:~/Downloads$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
sasm
Suggested packages:
intel2gas
The following packages will be upgraded:
sasm
1 upgraded, 0 newly installed, 0 to remove and 169 not upgraded.
1 not fully installed or removed.
Need to get 658 kB of archives.
After this operation, 1,620 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://kr.archive.ubuntu.com/ubuntu focal/universe amd64 sasm amd64 3.11.1-1 [658 kB]
Fetched 658 kB in 5s (137 kB/s)
(Reading database ... 187566 files and directories currently installed.)
Preparing to unpack .../sasm_3.11.1-1_amd64.deb ...
Unpacking sasm (3.11.1-1) over (3.11.1) ...
Setting up sasm (3.11.1-1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
wi@wi-VirtualBox:~/Downloads$ sudo dpkg -i sasm_3.11.1_amd64.deb
dpkg: warning: downgrading sasm from 3.11.1-1 to 3.11.1
(Reading database ... 187565 files and directories currently installed.)
Preparing to unpack sasm_3.11.1_amd64.deb ...
Unpacking sasm (3.11.1) over (3.11.1-1) ...
dpkg: dependency problems prevent configuration of sasm:
sasm depends on libqt4-network (>= 4:4.7.0); however:
Package libqt4-network is not installed.
sasm depends on libqtcore4 (>= 4:4.7.0); however:
Package libqtcore4 is not installed.
sasm depends on libqtgui4 (>= 4:4.8.0); however:
Package libqtgui4 is not installed.

dpkg: error processing package sasm (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
sasm
wi@wi-VirtualBox:~/Downloads$

'NASM' 카테고리의 다른 글

6일차.  (0) 2020.06.19
5일차.  (0) 2020.06.18
4일차.  (0) 2020.06.17
3일차.  (0) 2020.06.17
2일차  (0) 2020.06.15

요즘 노는 시간 도중도중 공부를 하고있는데

 

그 공부하고있는것중 ios용 키보드를 하나 만들고있다.

 

이곳에 쏟아 붇는시간이 얼마되지않아 진도가 많이 느리고 

 

처음에 제대로 공부하고 계획짜서 시작한게아니라 벌써 2번이나 갈아엎은 프로젝트이다.

 

기록을 살펴보니 최초일자가 5월19일

 

시작날짜만 보면 근 11일정도하고 영문키보드까진 됐는데

 

만들어야지 하고 이글 저글 스크랩만 해뒀던게 5월초부터니

 

근 한달간 공부는 키보드관련만 하고있었다

 

그렇게 근 한달정도된 프로젝트 진행 소스는 아래에 있다.

 

https://github.com/wiwi-git/FirstKeyboard

 

wiwi-git/FirstKeyboard

키보드 만들어보기... Contribute to wiwi-git/FirstKeyboard development by creating an account on GitHub.

github.com

키보드 디자인은 최대한 기본 키보드UI에서 벗어나질 않으려고 했고

 

기본 키보드를 쓰면서 제일 불편했던 숫자부분과 특수문자부분을 바로 입력가능하도록한 프로젝트였으나

 

여기까지 만들어놓고보니

 

한글을 입력하면!

 

자음, 모음이 하나씩 들어간다

 

합쳐지질 않는다

 

 

몰랐다.

 

 

새로운걸 알게되서 좋긴하나

 

어떻게 해야할지 모르겠다

 

조합하는거 자체는 어느 고마우신분이 c#으로 작성해둔게 있어서 Swift 소스로 바꿨는데

이걸 어떻게 입력이 들어가야할지 막막해져서 

 

원래는 완성되면 올리려고한 포스트를 진행상황과 자모 합하는 함수 저장용으로 이 포스트를 남긴다.

 

아래 주소는 네이버 닉 골드러쉬님이 c#으로 12년도에 작성한 포스트이다.

m.blog.naver.com/goldrushing/130145910594

 

[C#] 한글 자음/모음 조합하기.

참조: 데브피아 (http://www.devpia.com/MAEUL/Contents/Detail.aspx?BoardID=17&MAEUL...

blog.naver.com

 

이걸 swift로 변환하면 이렇게된다.

 

let cho:[Character] = ["ㄱ","ㄲ","ㄴ","ㄷ","ㄸ","ㄹ","ㅁ","ㅂ","ㅃ","ㅅ","ㅆ","ㅇ","ㅈ","ㅉ","ㅊ","ㅋ","ㅌ","ㅍ","ㅎ"]

let jung:[Character] = ["ㅏ", "ㅐ", "ㅑ", "ㅒ", "ㅓ", "ㅔ", "ㅕ", "ㅖ", "ㅗ", "ㅘ", "ㅙ", "ㅚ", "ㅛ", "ㅜ", "ㅝ",
                        "ㅞ", "ㅟ", "ㅠ", "ㅡ", "ㅢ", "ㅣ"]
let jong:[Character] = [" ", "ㄱ", "ㄲ", "ㄳ", "ㄴ", "ㄵ", "ㄶ", "ㄷ", "ㄹ", "ㄺ", "ㄻ", "ㄼ", "ㄽ", "ㄾ", "ㄿ",
                        "ㅀ", "ㅁ", "ㅂ", "ㅄ", "ㅅ", "ㅆ", "ㅇ", "ㅈ", "ㅊ", "ㅋ", "ㅌ", "ㅍ", "ㅎ"]
func hangle(c1:Character,c2:Character,c3:Character) -> Character? {
    var cho_i = 0
    var jung_i = 0
    var jong_i = 0
    for i in 0 ..< cho.count {
        if cho[i] == c1 { cho_i = i }
    }
    
    for i in 0 ..< jung.count {
        if jung[i] == c2 { jung_i = i }
    }
    
    for i in 0 ..< jong.count {
        if jong[i] == c3 { jong_i = i }
    }
    
    let uniValue:Int = (cho_i * 21 * 28) + (jung_i * 28) + (jong_i) + 0xAC00;
    if let uni = Unicode.Scalar(uniValue) {
        return Character(uni)
    }
    
    return nil
}

 

정확히 말하면 조금 변경했는데

변환이 안됐을때의 값을 nil값이 나오도록했고, 초성/중성/종성이 담긴 배열은 그냥 밖으로 빼버렸다.

 

분명 코드값 비교해가며 고민하신 소스일텐데 이렇게 공유해주시니 매우 감사할따름

 

 

47. 콘솔에서 두 정수(a,b)를 입력 받아 a와b가 같으면 1, 같지않으면 0 을 출력하라.

입력 : 1Line 으로 a,b가 공백을 두고 입력된다.

입력 범위 : -2147483648 ~ 2147483647

입력 예시

9 1

출력 예시

0

 

JAVA

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int flagValue = scan.nextInt();
		if(flagValue== scan.nextInt()) {
			System.out.println(1);
		} else {
			System.out.println(0);
		}
        scan.close();
	}
}

 

Swift 4.2

import Foundation

let line = readLine()
if line != nil {
    let split = line!.split(separator: " ")
    if split.count == 2, let a = Int(split[0]), let b = Int(split[1]) {
        print(String.init(format: "%d", (a==b)))
    }
}

 

 

이전 문제에서 부호만 바꾸었습니다.

https://codeup.kr/problem.php?id=1050

 

[기초-비교연산] 두 정수 입력받아 비교하기2(설명)

C언어기초100제v1.2 : @컴퓨터과학사랑, 전국 정보(컴퓨터)교사 커뮤니티/연구회 - 학교 정보(컴퓨터)선생님들과 함께 수업/방과후학습/동아리활동 등을 통해 재미있게 배워보세요.  - 모든 내용 ��

codeup.kr

 

 

 

 

 

48. 콘솔에서 두 정수(a,b)를 입력 받아 b가 a보다 크거나 같으면1, b가 a보다 작으면 0을 추렭하라

입력 : 1Line 으로 a,b가 공백을 두고 입력된다.

입력 범위 : -2147483648 ~ 2147483647

입력 예시

0 -1

출력 예시

0

 

JAVA

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int flagValue = scan.nextInt();
		if(flagValue <= scan.nextInt()) {
			System.out.println(1);
		} else {
			System.out.println(0);
		}
        scan.close();
	}
}

 

 

Swift 4.2

import Foundation

let line = readLine()
if line != nil {
    let split = line!.split(separator: " ")
    if split.count == 2, let a = Int(split[0]), let b = Int(split[1]) {
        print(String.init(format: "%d", (a<=b)))
    }
}

 

 

 

이전 문제의 소스에서 부호만 변경했습니다.

https://codeup.kr/problem.php?id=1051

 

[기초-비교연산] 두 정수 입력받아 비교하기3(설명)

C언어기초100제v1.2 : @컴퓨터과학사랑, 전국 정보(컴퓨터)교사 커뮤니티/연구회 - 학교 정보(컴퓨터)선생님들과 함께 수업/방과후학습/동아리활동 등을 통해 재미있게 배워보세요.  - 모든 내용 ��

codeup.kr

 

 

 

 

 

 

 

 

49. 콘솔에서 두 정수(a,b)를 입력 받아 두 값이 다르면 1 같으면 0을 출력하라.

입력 : 1Line 으로 a,b가 공백을 두고 입력된다.

입력 범위 : -2147483648 ~ 2147483647

입력 예시

0 1

출력 예시

1

 

Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int flagValue = scan.nextInt();
		if(flagValue != scan.nextInt()) {
			System.out.println(1);
		} else {
			System.out.println(0);
		}
        scan.close();
	}
}

 

 

Swift 4.2

import Foundation

let line = readLine()
if line != nil {
    let split = line!.split(separator: " ")
    if split.count == 2, let a = Int(split[0]), let b = Int(split[1]) {
        print(String.init(format: "%d", (a != b)))
    }
}

 

 

 

 

이전 문제에서 부호만 변경했습니다.

https://codeup.kr/problem.php?id=1052

 

[기초-비교연산] 두 정수 입력받아 비교하기4(설명)

C언어기초100제v1.2 : @컴퓨터과학사랑, 전국 정보(컴퓨터)교사 커뮤니티/연구회 - 학교 정보(컴퓨터)선생님들과 함께 수업/방과후학습/동아리활동 등을 통해 재미있게 배워보세요.  - 모든 내용 ��

codeup.kr

 

 

44. 콘솔에서 정수 한 개를 입력받아 그 두배를 출력하라.

입력 범위 : -1073741824 ~ 1073741823

입력 예시

1024

출력 예시

2048

Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long value = scan.nextInt();
        scan.close();
		System.out.println(value << 1);
	}
}

Swift 4.2

import Foundation

let line = readLine()
if line != nil {
    if let value = Int(line!) {
        print(value << 1)
    }
}

 

시프트 연산 오랜만에 하네요.

솔직히 잘 기억도 안납니다.

저는 국딩이 아닙니다. 제 나이때 주변 애들은 전부 정보교육?인가 해서 한참 교과목으로 컴퓨터를 배우던때가 있습니다.

아 그리운 플로피디스크여~

아무튼 그때 교산지 강산지, 선생님의 왈 " 컴퓨터는 덧셈밖에못하는 바보야! "

그리고 시간이 흘러

저의 왈 " 선생님! 바보! "

컴퓨터는 곱셈연산, 그러니까 2진수의 시프트 연산으로 사람이 하는 곱셈과 유사한일을 할 수 있습니다.

주의점은 나열된 1과 0을 그대로 오른쪽 왼쪽으로 움직이는거라 예상치 못한 동작을 하기도합니다.

뭐 이런건 따로 검색해보세요

꽤나 덧셈 뺄셈 곱셈 나눗셈 연산을 재미지게 합니다.

기본적으로 C를 기반으로 작성된 문제이기때문에 이대로 가다보면 매크로연산정의하는 문제도 나오지않을까합니다.

아 그런거 싫은데

https://codeup.kr/problem.php?id=1047

 

[기초-비트시프트연산] 정수 1개 입력받아 2배 곱해 출력하기(설명)

C언어기초100제v1.2 : @컴퓨터과학사랑, 전국 정보(컴퓨터)교사 커뮤니티/연구회 - 학교 정보(컴퓨터)선생님들과 함께 수업/방과후학습/동아리활동 등을 통해 재미있게 배워보세요.  - 모든 내용 ��

codeup.kr

 

 

45. 콘솔에서 정수 두 개( a, b )를 입력받아 a 의 2^b 배를 출력하라

입력 : 정수 두 개가 공백을 두고 1line으로 입력된다. ( 입력 범위: a >= 0, b <= 10 )

입력 예시

2 3

출력 예시

16

Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int base = scan.nextInt();
		int exp = scan.nextInt();
        scan.close();
		if(base >= 0 && exp <= 10 ) {
			System.out.println(base << exp);
		}
	}
}

 

Swift

import Foundation

let line = readLine()
if line != nil {
    let split = line!.split(separator: " ")
    if split.count == 2, let base = Int(split[0]), let exp = Int(split[1]) {
        if base >= 0 , exp <= 10 {
            print(base << exp)
        }
    }
}

 

 

https://codeup.kr/problem.php?id=1048

 

[기초-비트시프트연산] 한 번에 2의 거듭제곱 배로 출력하기(설명)

C언어기초100제v1.2 : @컴퓨터과학사랑, 전국 정보(컴퓨터)교사 커뮤니티/연구회 - 학교 정보(컴퓨터)선생님들과 함께 수업/방과후학습/동아리활동 등을 통해 재미있게 배워보세요.  - 모든 내용 ��

codeup.kr

 

 

 

46. 콘솔에서 두 정수(a,b)를 입력 받아 a가 b보다 크면 1, 그외 라면 0 을 출력하라.

입력 : 1Line 으로 a,b가 공백을 두고 입력된다.

입력 범위 : -2147483648 ~ 2147483647

입력 예시

9 1

출력 예시

1

JAVA

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int flagValue = scan.nextInt();
        scan.close();
		if(flagValue > scan.nextInt()) {
			System.out.println(1);
		} else {
			System.out.println(0);
		}
	}
}

Swift 4.2

import Foundation

let line = readLine()
if line != nil {
    let split = line!.split(separator: " ")
    if split.count == 2, let a = Int(split[0]), let b = Int(split[1]) {
        print(String.init(format: "%d", (a>b)))
    }
}

 

 

 

bool형 변수는 사실 0 과 1 이다! 라는걸 보여주려는 문제인거같은데

JAVA에서 bool을 바로 정수형으로 보여주기가 어찌해야할지 모르겠어서 결국그냥 1,0을 써서 출력했네요.

swift 는 c베이스로 만들어진거라 바로 bool을 int로 변형이 가능했습니다.

 

https://codeup.kr/problem.php?id=1049

 

[기초-비교연산] 두 정수 입력받아 비교하기1(설명)

C언어기초100제v1.2 : @컴퓨터과학사랑, 전국 정보(컴퓨터)교사 커뮤니티/연구회 - 학교 정보(컴퓨터)선생님들과 함께 수업/방과후학습/동아리활동 등을 통해 재미있게 배워보세요.  - 모든 내용 ��

codeup.kr

 

 

 

 

 

 

 

 

기존 네이버 블로그에 있던내용을 옴기는 작업은 가장 먼저 하려고하다가 중간에 멈추고 미루고 미뤄

어느새 20년도 초여름에 다가왔습니다.;;

 

새롭게 시작했던 키보드만드는것도 어느정도 완결이 보여 뭐할까 고민하다가 

 

다시금 포스트 옴기기의 진행도를 늘려보려합니다.

이번에는 iOS에서 차트로 유명한 오픈소스인 Charts를 사용합니다.

 

퇴사하고나면 행복해하면서 천천히 다음직장을 찾을줄 알았는데

 

하루하루 게임으로 현실도피하기 바쁨니다.

 

공부용 서적을 엄청 사놨는데 거의 안봤네요

 

튜토리얼용 영상도 거의 하루꼴로 찍어 올려볼생각이였는데 왜 이렇게 됐을까요.

 

iOS는 거의 모든걸 인터넷으로 배웠기에 은혜를 값는 셈으로 나도 다르분이 참고할 만한걸 만들고 싶었는데....

 

아무튼 영상은 아직 유튜브에서 영상처리로 업로드중이라 추후 수정으로 이글에 올릴 예정입니다.

1/4

https://www.youtube.com/watch?v=X8LnNA50vOM&feature=youtu.be

2/4

https://www.youtube.com/watch?v=fFHZ5jjvjzg

3/4

https://www.youtube.com/watch?v=Jdiup0nIf18&t=17s

 

4/4

https://www.youtube.com/watch?v=BeC5Srvh96I&t=18s

영상 추가해보니 이 짧은내용을 5시간반정도 했네요..;;

한두달 안하다가 뭔가 하려니 이리도 버벅이게되네요

 

 

 

다음 편은 포폴용으로 토이프로젝트만들어볼 생각입니다.

했던건 튜토리얼1~4에 나왔던거랑 크게 다르지않을거같습니다.

 

메모앱을 만들생각이라....

 

서버연동으로 구글메모장 처럼

동기화가능하게 만들생각입니다.

 

계정도 엮어서 해봐야지

 

https://github.com/wiwi-git/Use-Charts

 

wiwi-git/Use-Charts

iOS Chart 사용 튜토리얼. Contribute to wiwi-git/Use-Charts development by creating an account on GitHub.

github.com

 

import pymysql


class DBController:
    host = 'localhost'
    port = 9999
    user = 'userID'
    pw = 'userPW'
    db_name = 'testDB'

    def __init__(self):
        print("__init__")
        self.conn = pymysql.connect(host=self.host, port=self.port, user=self.user, password=self.pw, db=self.db_name)
        self.curs = self.conn.cursor(pymysql.cursors.DictCursor)

    def create_connect(self, host=host, port=port, id=user, pw=pw, db_name=db_name):
        print("create connect")
        self.curs = self.conn.cursor(pymysql.cursors.DictCursor)
        self.conn = pymysql.connect(host=host, port=port, user=id, password=pw, db=db_name)

    def execute(self, query, args={}):
        self.curs.execute(query, args)

    def execute_one(self, query, args={}):
        self.curs.execute(query, args)
        row = self.curs.fetchone()
        return row

    def execute_all(self, query, args={}):
        self.curs.execute(query, args)
        row = self.curs.fetchall()

        return row

    def commit(self):
        self.conn.commit()

 

 

Flask 로 api 간단히 만들기 라는 글좀 따라해보다가 어디선가 긁어와서 살짝 수정해서 썻던 소스인데 기억이 안나서 출처는 없습니다.

 

init쪽에 conn이랑 curs생성하지않고( 해당 소스 지우고 ) 

 

클래스 만들어서 사용할때 crate_connect()호출해서 쓰는게 더 나아보이는데

 

여러모로 귀찮아서.. 그냥 집어넣었던거 같기도하고 애초에 있던거같기도하고

 

기억이 여로모로 애매하네요

'python' 카테고리의 다른 글

워드문서를 합치는 방법  (0) 2020.10.07

MariaDb,

 

관리자 계정으로 들어간다.

 

# 사용자 목록 확인

우선 사용자 목록을 확인해보자

 

전체적인 정보가 담겨있는 데이터베이스를 봐야하니

mysql db로 들어가자

 

user mysql;

 

이미 있는 계정이 궁굼하면

이 mysql db에 들어가있는 상태에서

select host, user from user;

라고 쿼리를 입력하면 아래와같이 호스트 / 아이디 로 나온다

 

 

 

# 사용자 생성

이제 id 는 test_id 접속 호스트는 localhost 비밀번호는 1234 로 계정을 생성해 준다하면

create user 'test_id'@'localhost' identified by '1234';

라고 입력하고 쿼리 ok가 나오면 성공이다

다시  목록을 확인해보면

아까 6개였던 표에서 7개줄로 변경되고 중간에 Localhost 에 test_id로 추가가되어있음을 확인 할 수 있다.

 

 

# 사용자 계정에 권한 추가하기 

계정을 생성해봤자 사실 이 시점에서는 아무것도 못한다.

그래서 계정에 할 수 있는 것에 대해 정의를 해줘야하는데

이때 권한을 어떠한 db에 대해 권한을 정의해준다.

 

테스트용도로 wiwi_blog_test 라는이름의 db를 미리 만들어주었고

이 db에 아까 만든 test_id계정의 권한을 주자

주려는 권한은 

select, insert, update, delete

이 네가지를 준다고하면 

 

grant select, insert, update, delete on wiwi_blog_test.* to 'test_id'@'localhost';

 

※ db명 뒤의(wiwi_blog_test의 뒤) 점(.) 하고 * 는 이 db에 있는 모든 테이블을 지칭한다.

 

쿼리입력후 쿼리 Ok가 뜨면 성공이다.

필요에따라 저 네개중 빼고 줄 수도 있다.

 

 

 

사실 이대로 접속해보려면 제대로 접속이 안된다.

이 권한변경에 대해 적용을 한다는 쿼리를 날려줘야한다( insert 후의 commit과 같은)

 

flush privileges;

이제 test_id로 wiwi_blog_test db의 검색,입력,수정,삭제를 할 수 있게 되었다!

 

localhost로 주었기에 물론 외부에서는 접속이 안된다. 하지만 이제 다른 db관리 프로그램으로 해당 db에 접근 할 수 있게 되어 gui환경으로도 편집 수정 확인을 할 수 있다!

 

# 사용자 계정에 주어진 권한 확인

제대로 권한이 들어갔는지 권한 확인을 하자면 

 

show grants for 'test_id'@'locahost';

 

wiwi_blog_test db의 모든 테이블에 대해 select, insert, update, delete가 되어있다고 잘 나온다 ㅎ 

 

# 계정 삭제

이제 이 계정을 삭제해보자 

drop user 'test_id'@'localhost';

 

 

역시 query ok가 뜬다면 성공한것이다

 

어느순간부터 mysql에서 수정시 update 문으로 user테이블 수정으로 비밀번호 수정이 안된다.

 

update user set password='user_id'@'host' identified by 'new_pw'

입력시 

COLUMN PASSWORD IS NOT UPDATEABLE 이라고 경고문이 뜬다.

 

 

 

기존 id가 wiwi이고 접속 호스트가 localhost 라면 이 계정의 비밀번호를 abcd1234로 변경한다하면

 

아래와 같이 하면된다.

 

우선 데이터베이스는 기존과같다.

 

root계정으로 접속한후

 

use mysql;

 

alter user 'wiwi'@'localhost' identified by 'abcd1234';

 

 

 

query ok 라고뜨면 끝이다 간단!

+ Recent posts