Build Error - Cannot move '/etc/apt/sources.list.d/debian.sources'

764 views
Skip to first unread message

Sujay Gupta

unread,
Jul 11, 2024, 10:49:07 PM7/11/24
to sonicproject
Hi Group,

Has someone faced this error in the initial build steps?


make configure PLATFORM=vs


mv: cannot move '/etc/apt/sources.list.d/debian.sources' to '/etc/apt/sources.list.d/debian.sources.back': Permission denied

Not sure why the make file is attempting a root permitted operation in the first place?

Build- Ubuntu 20.04,
Code base - master - tag #c2055abbc

Thanks,
-Sg

Олексій Фадєєв

unread,
Sep 17, 2024, 4:49:02 AM9/17/24
to sonicproject
Have the same error. Have you managed to solve that in a correct way?

Sujay Gupta

unread,
Sep 25, 2024, 12:19:10 AM9/25/24
to sonicproject

Hi, Sorry for the late reply.
No I could not have this fixed, but it did not stop from making the final build image.
Regards,
-sujay

Zeta Zig

unread,
Oct 15, 2024, 12:48:57 AM10/15/24
to sonicproject
Have the same error.
 
"CROSS_BUILD_ENVIRON"             : "n"
"LEGACY_SONIC_MGMT_DOCKER"        : "y"
"INCLUDE_EXTERNAL_PATCHES"        : "n"
"PTF_ENV_PY_VER"                  : "mixed"


mv: cannot move '/etc/apt/sources.list.d/debian.sources' to '/etc/apt/sources.list.d/debian.sources.back': Permission denied
"SONIC_DPKG_CACHE_METHOD"         : "none"

[ 01 ] [ target/debs/bookworm/libtac2_1.4.1-1_arm64.deb-install ]
[ 02 ] [ target/debs/bookworm/libyang2_2.0.112-6_arm64.deb-install ]
Makefile.work:604: *** [target/sonic-centec-arm64.bin] error 2

#0  target/sonic-centec-arm64.bin at /home/arm/sonic-buildimage/Makefile.work:604

Making is stopped by this error. No idea where "mv" is called.

Sujay Gupta

unread,
Nov 1, 2024, 2:04:38 AM11/1/24
to sonicproject
Hi Zeta,
Regards,
-Sujay

Zeta Zig

unread,
Dec 10, 2024, 1:19:45 AM12/10/24
to sonicproject
Hi Sujay,

Added sudo, problem solved.

Thank you.  

Reply all
Reply to author
Forward
0 new messages