Error while trying to install packages

I have been trying to deploy my ML model on spaces. I need packages fluidsynth and lilypond to be installed for my model to work which i have included in packages.txt . I keep getting the following error,

--> RUN apt-get update && xargs -r -a /root/packages.txt apt-get install -y
Get:3 buster-updates InRelease [51.9 kB]
Fetched 51.9 kB in 0s (184 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package lilypond
E: Unable to locate package fluidsynth

--> ERROR: process "/bin/sh -c apt-get update && xargs -r -a /root/packages.txt apt-get install -y" did not complete successfully: exit code: 123

My packages.txt has the following:

Could someone please help me to figure out what i am missing here?

Looks like even though my different packages were on 2 separate lines in github, when it reached spaces they were interpreted as single line. It got fixed when i made a separate commit in spaces to put them in 2 lines.