[Br:1][C:2]1[N:7]=[C:6]([C:8]([O:10][CH3:11])=[O:9])[C:5](N)=[N:4][CH:3]=1.N([O-])=O.[Na+].[CH3:17][OH:18].C(Cl)(Cl)Cl>S(=O)(=O)(O)O>[Br:1][C:2]1[N:7]=[C:6]([C:8]([O:10][CH3:11])=[O:9])[C:5]([O:18][CH3:17])=[N:4][CH:3]=1In 100 ml of concentrated sulfuric acid is dissolved 17.00 g of methyl 6-bromo-3-amino-2-pyrazinecarboxylate obtained according to the method described in literature [J. Am. Chem. Soc., 2798-2800 (1949)]. At an ice-cooled temperature, 10.11 g of sodium nitrite is added to the suspension, which is stirred for 30 minutes. The reaction mixture is poured into 920 mL of methanol, and heated under reflux for 5 hours. The reaction mixture is cooled and then concentrated under reduced pressure. The residue thus obtained is added to a mixture of 500 mL of ice water and 600 mL of chloroform and separated into layers. The organic layer is washed successively with saturated aqueous solution of sodium hydrogen carbonate, water and saturated aqueous solution of sodium chloride and dried over anhydrous magnesium sulfate. Then, the solvent is distilled off under reduced pressure to obtain 6.30 g of methyl 6-bromo-3-methoxy-2-pyrazinecarboxylate.