부모글 보이기/감추기 AD BLOCK 해제 요청 이 글에는 광고가 많이 들어가 있지 않습니다. adblock을 해제하셔도 글을 읽는데 그다지 부담이 없으니 해제를 부탁드립니다. (연관된 글이 2개 있습니다.) Linux - apt와 apt-get의 차이 (이 글의 원인은 docker 이미지 빌드 시 "RUN apt install ..." 명령어가 실패하는 이유 글에서 밝혔습니다.) 리눅스를 잘은 모르지만, apt-get이 기존 방식이고 근래 들어 apt가 추가돼 나온 것으로만 알고 있습니다. 검색해 봐도, 딱히 다른 점은 없다고 하는데요, [Ubuntu 20.04 LTS]apt와 apt-get의 차이점 ; https://pstudio411.tistory.com/entry/apt%EC%99%80-apt-get%EC%9D%98-%EC%B0%A8%EC%9D%B4%EC%A0%90 그런데, dockerfile 구성 시 단순히 "apt update/upgrade" 옵션으로 실행한 경우, FROM python:3.8-slim-buster RUN apt update RUN apt upgrade -y RUN apt install libpq-dev -y // docker build -t test-python -f %MAKE_BUILD_APP_PATH%\data\test.dockerfile . 오류가 발생했던 것과는 달리 apt-get으로 하면 잘 통과한 적이 있었습니다. FROM python:3.8-slim-buster RUN apt-get update RUN apt-get upgrade -y RUN apt-get install libpq-dev -y 여기서 재미있는 점은, 며칠 지나서 다시 실행해 봤더니 그때는 또 "apt update/upgrade" 명령으로도 잘 설치가 되었습니다. 정확하게 판단할 수는 없지만, 아마도 apt-get의 repo와 apt의 repo가 실시간으로 동기화되는 것은 아닌 듯합니다. (혹시 자세한 차이점을 아시는 분은 덧글 부탁드립니다. ^^) [이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.] [다음 글] 스크립트: 40. 파이썬 - PostgreSQL 환경 구성[이전 글] .NET Framework: 2020. C# - NTFS 파일에 사용자 정의 속성값 추가하는 방법 [연관 글] Linux: 52. Debian/Ubuntu 계열의 docker container에서 자주 설치하게 되는 명령어오류 유형: 836. docker 이미지 빌드 시 "RUN apt install ..." 명령어가 실패하는 이유 [최초 등록일: 6/15/2022] [최종 수정일: 1/9/2023] 이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다. by SeongTae Jeong, mailto:techsharer at outlook.com 비밀번호 댓글 작성자 2022-06-29 12시23분 [규링] dockerfile 같은 스크립트로 구성해서 작업을 진행하고자 할 때에는 apt-get을 이용하는 것이 더 좋습니다.명령 자체가 동작하는 방식이 좀 다릅니다.예를 들어, apt-get update를 진행하면 시스템 리포지토리의 인덱스만 업데이트 되는 데 반면,apt update를 진행하면 시스템 리포지토리의 인덱스 업데이트와 함께 리포지토리에서 사용 가능한 소프트웨어의 소프트웨어의 새 버전이 얼마나 더 있는지도 알려줍니다.업그레이드에서도 차이를 보여주는데, apt-get upgrade 다른 패키지를 제거하거나 새 패키지를 설치하지 않고 업그레이드할 수 있는 모든 패키지를 업그레이드합니다.apt upgrade 다른 패키지를 제거하지 않고 업그레이드할 수 있는 모든 패키지를 업그레이드합니다.미묘한 차이일 수도 있습니다만... 명령어 처리에서의 모호함을 없애기 위해 apt가 더 선호되고 있어서 그렇지둘 다 동일한 리포 주소파일을 읽고 동일하게 하는 거 같아도 미묘하게 동작의 차이가 존재합니다.그래서 그냥 명령어로 칠 때에는 상관이 없긴 한데, 이런 세세한 동작 차이 때문에 스크립트로 구성한다고 하면 여전히 apt-get으로 스크립트를 구성하는 것이 좀 더 안전합니다. [guest] 2022-06-29 09시40분 @규링 설명 감사합니다. ^^ 정성태 ... 46 47 48 49 50 51 52 53 54 55 56 57 [58] 59 60 ... NoWriterDateCnt.TitleFile(s) 12208정성태4/12/202010478Linux: 29. 리눅스 환경에서 C/C++ 프로그램이 Segmentation fault 에러가 발생한 경우12207정성태4/2/20209489스크립트: 19. Windows PowerShell의 NonInteractive 모드12206정성태4/2/202011926오류 유형: 613. 파일 잠금이 바로 안 풀린다면? - The process cannot access the file '...' because it is being used by another process.12205정성태4/2/20209243스크립트: 18. Powershell에서는 cmd.exe의 명령어를 지원하진 않습니다.12204정성태4/1/20208946스크립트: 17. Powershell 명령어에 ';' (semi-colon) 문자가 포함된 경우12203정성태3/18/202011044오류 유형: 612. warning: 'C:\ProgramData/Git/config' has a dubious owner: '...'.12202정성태3/18/202013698개발 환경 구성: 486. .NET Framework 프로젝트를 위한 GitLab CI/CD Runner 구성12201정성태3/18/202011539오류 유형: 611. git-credential-manager.exe: Using credentials for username "Personal Access Token". [1]12200정성태3/18/202011807VS.NET IDE: 145. NuGet + Github 라이브러리 디버깅 관련 옵션 3가지 - "Enable Just My Code" / "Enable Source Link support" / "Suppress JIT optimization on module load (Managed only)"12199정성태3/17/20209689오류 유형: 610. C# - CodeDomProvider 사용 시 Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path '...\f2_6uod0.tmp'.12198정성태3/17/202012608오류 유형: 609. SQL 서버 접속 시 "Cannot open user default database. Login failed."12197정성태3/17/202011688VS.NET IDE: 144. .NET Core 콘솔 응용 프로그램을 배포(publish) 시 docker image 자동 생성 - 두 번째 이야기 [1]12196정성태3/17/20209504오류 유형: 608. The ServicedComponent being invoked is not correctly configured (Use regsvcs to re-register).12195정성태3/16/202011270.NET Framework: 902. C# - 프로세스의 모든 핸들을 열람 - 세 번째 이야기12194정성태3/16/202013573오류 유형: 607. PostgreSQL - Npgsql.NpgsqlException: sorry, too many clients already12193정성태3/16/202010244개발 환경 구성: 485. docker - SAP Adaptive Server Enterprise 컨테이너 실행 [1]12192정성태3/14/202012726개발 환경 구성: 484. docker - Sybase Anywhere 16 컨테이너 실행12191정성태3/14/202013152개발 환경 구성: 483. docker - OracleXE 컨테이너 실행 [1]12190정성태3/14/20209081오류 유형: 606. Docker Desktop 업그레이드 시 "The process cannot access the file 'C:\Program Files\Docker\Docker\resources\dockerd.exe' because it is being used by another process."12189정성태3/13/202014081개발 환경 구성: 482. Facebook OAuth 처리 시 상태 정보 전달 방법과 "유효한 OAuth 리디렉션 URI" 설정 규칙12188정성태3/13/202016753Windows: 169. 부팅 시점에 실행되는 chkdsk 결과를 확인하는 방법12187정성태3/12/20208882오류 유형: 605. NtpClient was unable to set a manual peer to use as a time source because of duplicate error on '...'.12186정성태3/12/202010136오류 유형: 604. The SysVol Permissions for one or more GPOs on this domain controller and not in sync with the permissions for the GPOs on the Baseline domain controller.12185정성태3/11/202010834오류 유형: 603. The browser service was unable to retrieve a list of servers from the browser master...12184정성태3/11/202012250오류 유형: 602. Automatic certificate enrollment for local system failed (0x800706ba) The RPC server is unavailable. [3]12183정성태3/11/202010582오류 유형: 601. Warning: DsGetDcName returned information for \\[...], when we were trying to reach [...]. ... 46 47 48 49 50 51 52 53 54 55 56 57 [58] 59 60 ...