domjudge安装笔记 by markcoder 2020/10/15
故事的开始
缘起
刚刚参加完TOPC比赛2020 ICPC Asia Taiwan Online Programming Contest。赛前豪言壮语,“什么他娘的国立大学,老子打得就是国立” ,赛后再一次被虐的怀疑人生。
比赛时使用的domjudge平台,赛后主办方公开了比赛测资。故想着自己搭建一个domjudge平台,供自己和其他同校选手复盘使用。
意外
前前后后一共从头开始了四次,作为一个一边查linux指令一边摸索着安装的弱鸡,一度想要放弃。
第一次安装:突然停电,文件损坏,一切归零~~(台湾用爱发电名不虚传 )~~ 。
第二次安装:发生了包依赖错误,想着卸载出现错误的软件重装,就下了autoremove命令。然后就看到一个个图标逐渐消失,最后连记事本也没剩下…(安装十年功,卸载十秒钟! )
第三次安装:再一次停电~~(祭央乂的用爱发电大队?! )。~~
经过三次血泪历程,老老实实使用虚拟机快照,大家切记要备份,都是血与泪的教训。
第四次安装:卡在建立judgehost的chroot环境。最后发现是ubuntu版本的问题,重新换了ubuntu 18.04之后解决。
结果
花了7天的时间,终于搭建完domjudge。感谢导师对我的全力帮助和教导!
安装环境
virtual box 4GB内存 50GB硬盘
ubuntu 18.04 LTS
domjudge 7.3
一开始本着用新不用旧的原则,使用了ubuntu20.04,结果卡在judgehost的chroot环境的安装。
在安装chroot环境时会出现包依赖错误,翻阅很多了debootstrap和domjudge的相关资料,未找到具体原因。
w: Failure while configuring base packages .This will be re-attempted up to five times .w: See /chroot/ domjudge 1 debootstr ap/ debootstrap.log for details (possibly the package dconf-service is at fault )
W: Failure while configur ing base packages.This will be re- attempted up to five times.w: See /chroot 1 domjudge/ deboots tr ap/debootstrap.log for details (possibly the package dconf-service is at fault)
w: Failure while configuring base packages .This will be re-attempted up to five times.w: See /chroot 1 domjudge/ deboots tr ap/debootstrap.log for details (possibly the package dconf-service is at fault )
W: Failure while conf iguring base packages. This will be re- attempted up to f ive times .w: See /chroot/ domjudge 1 debootstr ap/ debootstrap.log for details (possibly the package dconf-service is at fault)
W: Failure while configuring base packages .This will be re-attempted up to five times .W: See /chroot/ domjudge/ debootstrap /debootstrap.log for details (possibly the package dconf-service is at fault )
4 dpkg: error processing package sof tware- proper ties-common ( --configure):
5 dependency problems - leaving unconf igured
бЕггогѕ wеrе еnсоuntеrеd whіlе рrосеѕѕіng:
7 dconf -service
8 dconf - gsettings- backend :