File tree Expand file tree Collapse file tree 1 file changed +11
-20
lines changed Expand file tree Collapse file tree 1 file changed +11
-20
lines changed Original file line number Diff line number Diff line change @@ -124,26 +124,17 @@ async function main() {
124124 core . info ( `QEMU package not available for host architecture (${ hostArch } ), skipping QEMU installation.` ) ;
125125 } else {
126126 core . startGroup ( "Install QEMU" ) ;
127-
128- // Construct the download URL for the appropriate QEMU static binary package
129- const qemuUrl = `http://mirrors.kernel.org/ubuntu/pool/universe/q/qemu/qemu-user-static_6.2+dfsg-2ubuntu6_${ cpuArchitecture } .deb` ;
130-
131- try {
132- // Download the QEMU Debian package to a temporary location
133- await exec . exec ( "wget" , [ qemuUrl , "-O" , "/tmp/qemu.deb" ] ) ;
134- } catch ( error ) {
135- core . setFailed ( `Failed to download QEMU package from ${ qemuUrl } : ${ error . message } ` ) ;
136- process . exit ( 1 ) ;
137- }
138-
139- try {
140- // Install the downloaded QEMU package using dpkg
141- await exec . exec ( "sudo" , [ "dpkg" , "-i" , "/tmp/qemu.deb" ] ) ;
142- } catch ( error ) {
143- core . setFailed ( `Failed to install QEMU package: ${ error . message } ` ) ;
144- process . exit ( 1 ) ;
145- }
146-
127+ // Need newer QEMU to avoid errors
128+ await exec . exec ( "sudo" , [
129+ "apt-get" ,
130+ "update"
131+ ] )
132+ await exec . exec ( "sudo" , [
133+ "apt-get" ,
134+ "-y" ,
135+ "install" ,
136+ "qemu-user-static"
137+ ] )
147138 core . endGroup ( ) ;
148139 }
149140 } else {
You can’t perform that action at this time.
0 commit comments