데이터베이스/Postgresql
: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease' doesn't support architecture 'i386'
글을 쓰는 개발자
2021. 7. 10. 08:34
반응형
: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease' doesn't support architecture 'i386'
sudo apt-get update
할 때 위와 같은 에러가 난다면
sudo -H gedit /etc/apt/sources.list.d/pgdg.list
http://apt.postgresql...
이러한 글이 나올텐데
deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main
이렇게 바꿔주자
sudo apt-get update
으로 확인해보기
--------------------------------------------------추가---------------------------------------------------------------------------------------------------
그래도 안된다면 testcase 작성 중에 헤더 부분을 유심히 봐라.
예를 들어 Authorization을 보낼려고 하면 "HTTP_AUTHORIZATION" 와 같이 "HTTP_"를 붙여서 전달해야 하는데 그냥 Authorization만 보냈다던가.
그리고 전달할 때에는
response = self.client.get(self.url + "/5", **{'HTTP_AUTHORIZATION': self.access_token_1})
와 같이 "**"를 붙여서 보내야 한다.
그래도 안된다 하면 유저 권한에서 "CREATEDB"를 True로 설정해줘라.
ALTER ROLE miriam CREATEROLE CREATEDB;
마지막으로 그래도 안된다 그러면
https://vixxcode.tistory.com/120?category=996287
만약에 django - postgres test 돌렸을 때 안된다면
./ manage.py test --keepdb
vixxcode.tistory.com
반응형