내용 보기

작성자

관리자 (IP : 172.17.0.1)

날짜

2021-03-08 10:28

제목

시놀로지 Nas Ubuntu Docker timezone 변경하기


먼저 해줘야 할건 바로 컨테이너의 환경변수 설정

먼저 컨테이너를 종료하고 편집에서

아래의 환경변수를 추가

변수

TZ

Asia/Seoul

그리고 나서 터미널에서

dpkg-reconfigure tzdata

 

명령어를 실행해주면 된다

하지만 여기서 문제!!!

  


  

root@wnameless-oracle-xe-11g-r21:# dpkg-reconfigure tzdata

debconf: unable to initialize frontend: Dialog

debconf: (No usable dialog-like program is installed, so the dialog based fronte

nd cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)

debconf: falling back to frontend: Readline

debconf: unable to initialize frontend: Readline

debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Ter

m::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/pe

rl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr

/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local

/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/

FrontEnd/Readline.pm line 7.)

debconf: falling back to frontend: Teletype

dpkg-query: package 'tzdata' is not installed and no information is available

Use dpkg --info (= dpkg-deb --info) to examine archive files,

and dpkg --contents (= dpkg-deb --contents) to list their contents.

/usr/sbin/dpkg-reconfigure: tzdata is not installed



dpkg-reconfigure tzdata를 쳤더니 위와같은 에러가 나온다

 

아무리 해도 안된다 ㅠㅠ

apt-get 을 해도 안된다 ㅠㅠ

 

약 한두시간 놀면서 삽질한 결과...

 

root@wnameless-oracle-xe-11g-r21:# apt-get install tzdata

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following NEW packages will be installed:

tzdata

0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.

Need to get 190 kB of archives.

After this operation, 3106 kB of additional disk space will be used.

Ign:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 tzdata all 2019

b-0ubuntu0.18.04

Err:1 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 tzdata all 201

9b-0ubuntu0.18.04

404 Not Found [IP: 91.189.88.152 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata_2

019b-0ubuntu0.18.04_all.deb 404 Not Found [IP: 91.189.88.152 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-mis

sing?

 

이런 에러가 발생하면 apt를 업데이트 해줘야한다

 

root@wnameless-oracle-xe-11g-r21:/etc# apt-get -y update


자 여기까지 됐으면 다시

 

 

root@wnameless-oracle-xe-11g-r21:# apt-get install tzdata

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following NEW packages will be installed:

tzdata

0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.

Need to get 190 kB of archives.

After this operation, 3107 kB of additional disk space will be used.

Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 tzdata all 2019

c-0ubuntu0.18.04 [190 kB]

Fetched 190 kB in 2s (121 kB/s)

debconf: delaying package configuration, since apt-utils is not installed

Selecting previously unselected package tzdata.

(Reading database ... 7213 files and directories currently installed.)

Preparing to unpack .../tzdata_2019c-0ubuntu0.18.04_all.deb ...

Unpacking tzdata (2019c-0ubuntu0.18.04) ...

Setting up tzdata (2019c-0ubuntu0.18.04) ...

debconf: unable to initialize frontend: Dialog

debconf: (No usable dialog-like program is installed, so the dialog based fronte

nd cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)

debconf: falling back to frontend: Readline

debconf: unable to initialize frontend: Readline

debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Ter

m::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/pe



출처1

https://maketh.tistory.com/160

출처2