sudo – problems to install g ++ compatible

I recently installed the vs code and I can not download the g ++ compiler. I click sudo apt install g ++ And come back

Reading the lists of packages ... Done
Dependency tree of the building
Reading state information ... Done
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-7 g ++ - 7 gcc gcc-7 gcc-7-base libasan4 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libcilkrts5
libgcc-7-dev libgomp1 libisl19 libitm1 liblsan0 libmpc3 libmpx2 libquadmath0 libstdc ++ - 7-dev libtsan0 libubsan0 linux-libc-dev manpages-dev
Suggested packages:
binutils-doc cpp-doc gcc-7-local g ++ - multilib g ++ - 7-multilib gcc-7-doc libstdc ++ 6-7-dbg gcc-multilib make autoconf automake libtool flex bison gdb gcc-doc
gcc-7-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan4-dbg libtsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libtsan0-ppp.
glibc-doc libstdc ++ - 7-doc
The following NEW packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-7 g ++ g ++ - 7 gcc gcc-7 gcc-7-base libasan4 libatomic1 libbinutils libc-dev-bin-libc6-dev libcc1-0
libcilkrts5 libgcc-7-dev libgomp1 libisl19 libitm1 liblsan0 libmpc3 libmpx2 libquadmath0 libstdc ++ - 7-dev libtsan0 libubsan0 linux-libc-dev manpages-dev
0 updated, 30 newly installed, 0 to delete and 0 not updated.
Need to obtain 987 kB / 35.9 MB of files.
After this operation, 155 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Ign: 1 http://archive.ubuntu.com/ubuntu bionic-updates / main amd64 linux-libc-dev amd64 4.15.0-29.31
Err: 1 http://security.ubuntu.com/ubuntu bionic-updates / main amd64 linux-libc-dev amd64 4.15.0-29.31
404 not found [IP: 91.189.88.161 80]
E: Error getting http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-29.31_amd64.deb 404 Not Found [IP: 91.189.88.161 80]
E: some files can not be recovered, maybe run apt-get update or try --fix-missing?

I tried to update the apt-get update and tried to delete the sudo g ++ file and reinstall it, nothing seems to work.