LOS ANGELES — Hunter Biden wants to change his not-guilty plea to avoid going to trial on federal tax evasion charges, his defense attorney said Thursday, appearing to surprise prosecutors and the judge just as jury selection was set to begin.

Defense attorney Abbe Lowell told the judge that the evidence against Biden is “overwhelming” and the president’s son wants to resolve the case with a plea instead of going to trial for a second time months after he was convicted of felony gun charges in a separate case.

But prosecutors are objecting to the proposed Alford plea, under which a defendant maintains their innocence but acknowledges prosecutors have enough evidence to secure a conviction.

“Hunter Biden is not innocent. Hunter Biden is guilty,” prosecutor Leo Wise said. “He is not entitled to plead guilty on special terms that apply only to him.”

The Justice Department charged Biden with misdemeanor and felony charges over what prosecutors say was a four-year scheme to avoid paying at least $1.4 million in taxes while pulling in millions of dollars from foreign business entities. He is already confronting potential prison time since a Delaware jury convicted him in June of lying on a 2018 federal form to purchase a gun that he possessed for 11 days.

White House Press secretary Karine Jean-Pierre said she was “not able to comment” on Biden’s plans to change his plea. President Joe Biden has said he would not pardon or commute a sentence handed down against his son.

Asked again Thursday whether the president would pardon Hunter, Jean-Pierre said: “Still no.”

The defense’s announcement appeared to catch prosecutors and the judge off guard at Los Angeles’ federal courthouse, where more than 100 potential jurors had been brought to begin questioning Thursday. Opening statements in the case were expected Monday.

A last-minute plea would allow Hunter Biden to avoid a trial that was expected to put a spotlight on his foreign business dealings, which Republicans have spent years scrutinizing to accuse his father — without evidence — of corruption in connection with his son’s work overseas.

The potential political ramifications of the trial just weeks before the presidential election may have faded somewhat since President Biden’s July decision to drop out of the 2024 race. But the president is deeply concerned with the well-being of his son, so a trial would likely weigh heavily on him in the final months of his five-decade political career.

Hunter Biden walked into the courtroom holding hands with his wife, Melissa Cohen Biden, and flanked by Secret Service agents. Initially, he pleaded not guilty to the charges related to his 2016 through 2019 taxes and his attorneys have indicated that they will argue that he didn’t act “willfully,” or with the intention to break the law, in part because of his well- documented struggles with alcohol and drug addiction.

Biden had agreed to plead guilty to misdemeanor tax offenses last year in a deal with the Justice Department that would allow him to avoid prosecution in the gun case if he stayed out of trouble. But the agreement imploded after a judge questioned it, and he was subsequently indicted in the two cases.

His decision to change his plea Thursday came after the judge issued unfavorable pretrial rulings for the defense, including rejecting a defense expert lined up to testify about addiction.

Judge Mark Scarsi, appointed to the bench by then-President Donald Trump, also placed restrictions on what jurors would be allowed to hear about the traumatic events that Biden’s family, friends and attorneys say led to his drug addiction.

The judge barred attorneys from connecting his struggles with substance abuse to the 2015 death of his brother, Beau, from cancer or the car crash that killed his mother and sister when he was a toddler.

The indictment alleged that Biden lived lavishly while flouting the tax law, spending his cash on things like strippers and luxury hotels.

Biden’s attorneys had asked Scarsi to also limit prosecutors from highlighting details of his expenses that they say amount to a “character assassination.” The judge has said in court papers that he will maintain “strict control” over the presentation of potentially salacious evidence.

Prosecutors had said they want to introduce evidence about Biden’s overseas dealings, which have been at the center of Republican investigations into the Biden family, often seeking — without evidence — to tie the president to an alleged influence peddling scheme.