Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

I/O error and read only file issue

$
0
0

I downloaded Ubuntu because I need to run linux software (MUMmer, a bioinformatics tool) on my PC. Im trying to follow this websites instructions: https://docs.microsoft.com/en-us/windows/wsl/setup/environment#set-up-your-linux-user-info and I get to the step where I need to update and upgrade packages and I have to type:

sudo apt update && sudo apt upgrade

and I get these errors: first error

I tried googling it and it said to try:

sudo apt-get update

but when I did, I got these errors:

Hit:1 http://archive.ubuntu.com/ubuntu focal InReleaseErr:1 http://archive.ubuntu.com/ubuntu focal InRelease  Couldn't create temporary file /tmp/apt.conf.waoP04 for passing config to apt-keyIgn:2 http://archive.ubuntu.com/ubuntu focal-updates InReleaseIgn:3 http://security.ubuntu.com/ubuntu focal-security InReleaseIgn:4 http://archive.ubuntu.com/ubuntu focal-backports InReleaseErr:5 http://security.ubuntu.com/ubuntu focal-security Release  Could not open file /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_focal-security_Release - open (30: Read-only file system) [IP: 91.189.88.152 80]Err:6 http://archive.ubuntu.com/ubuntu focal-updates Release  Could not open file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_focal-updates_Release - open (30: Read-only file system) [IP: 91.189.88.142 80]Err:7 http://archive.ubuntu.com/ubuntu focal-backports Release  Could not open file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_focal-backports_Release - open (30: Read-only file system) [IP: 91.189.88.152 80]Reading package lists... Error!W: chown to _apt:root of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (30: Read-only file system)W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (30: Read-only file system)W: chown to _apt:root of directory /var/lib/apt/lists/auxfiles failed - SetupAPTPartialDirectory (30: Read-only file system)W: chmod 0700 of directory /var/lib/apt/lists/auxfiles failed - SetupAPTPartialDirectory (30: Read-only file system)W: Not using locking for read only lock file /var/lib/apt/lists/lockW: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.Auv1Lz - IsAccessibleBySandboxUser (30: Read-only file system)W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.bTmzQz - IsAccessibleBySandboxUser (30: Read-only file system)W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.x6Yb4z - IsAccessibleBySandboxUser (30: Read-only file system)W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.14iUqA - IsAccessibleBySandboxUser (30: Read-only file system)W: Problem unlinking the file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_focal_InRelease - PrepareFiles (30: Read-only file system)W: chown to _apt:root of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal_InRelease failed - Item::QueueURI (30: Read-only file system)W: chmod 0600 of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal_InRelease failed - Item::QueueURI (30: Read-only file system)W: chown to root:root of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal_InRelease failed - 400::URIFailure (30: Read-only file system)W: chmod 0644 of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal_InRelease failed - 400::URIFailure (30: Read-only file system)W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu focal InRelease: Couldn't create temporary file /tmp/apt.conf.waoP04 for passing config to apt-keyW: Problem unlinking the file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_focal-updates_InRelease - PrepareFiles (30: Read-only file system)W: Problem unlinking the file /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_focal-security_InRelease - PrepareFiles (30: Read-only file system)W: Problem unlinking the file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_focal-backports_InRelease - PrepareFiles (30: Read-only file system)W: Problem unlinking the file /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_focal-security_Release - PrepareFiles (30: Read-only file system)E: The repository 'http://security.ubuntu.com/ubuntu focal-security Release' no longer has a Release file.N: Updating from such a repository can't be done securely, and is therefore disabled by default.N: See apt-secure(8) manpage for repository creation and user configuration details.W: Problem unlinking the file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_focal-updates_Release - PrepareFiles (30: Read-only file system)E: The repository 'http://archive.ubuntu.com/ubuntu focal-updates Release' no longer has a Release file.N: Updating from such a repository can't be done securely, and is therefore disabled by default.N: See apt-secure(8) manpage for repository creation and user configuration details.W: Problem unlinking the file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_focal-backports_Release - PrepareFiles (30: Read-only file system)E: The repository 'http://archive.ubuntu.com/ubuntu focal-backports Release' no longer has a Release file.N: Updating from such a repository can't be done securely, and is therefore disabled by default.N: See apt-secure(8) manpage for repository creation and user configuration details.W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (30: Read-only file system)W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (30: Read-only file system)E: Unable to mkstemp /tmp/clearsigned.message.osv9ux - GetTempFile (30: Read-only file system)E: The package lists or status file could not be parsed or opened.

and it said to try

sudo apt-get install wget ca-certificates

but I got this error:

W: Not using locking for read only lock file /var/lib/dpkg/lock-frontendW: Not using locking for read only lock file /var/lib/dpkg/lockE: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

after runningsudo dpkg --configure -a

I get this error:

dpkg: error: unable to access the dpkg database directory /var/lib/dpkg: Read-only file system

I tried looking for solutions but I have no idea what all this is or means, unfortunately. I don't know what this /var/lib/dkkg directory is or where it is or what I need to do.

I tried ignoring this error and moving on to the other steps, for downloading anaconda, which I need to then download biocondnabut then I get this error:

wget: error while loading shared libraries: /lib/x86_64-linux-gnu/libpsl.so.5: cannot read file data: Input/output error

Any help would be much appreciated because I'm starting to dispair. Thank you in advance.

EDIT: The output of powershell.output

EDIT NUMBER 2 :Errors when installing anaconda, more RO stuff.:

/home/noor/anaconda3  - Press ENTER to confirm the location  - Press CTRL-C to abort the installation  - Or specify a different location below[/home/noor/anaconda3] >>>PREFIX=/home/noor/anaconda3installing: python-3.7.0-hc3d631a_0 ...Python 3.7.0installing: blas-1.0-mkl ...installing: ca-certificates-2018.03.07-0 ...installing: conda-env-2.6.0-1 ...installing: intel-openmp-2019.0-118 ...installing: libgcc-ng-8.2.0-hdf63c60_1 ...installing: libgfortran-ng-7.3.0-hdf63c60_0 ...installing: libstdcxx-ng-8.2.0-hdf63c60_1 ...installing: bzip2-1.0.6-h14c3975_5 ...installing: expat-2.2.6-he6710b0_0 ...installing: fribidi-1.0.5-h7b6447c_0 ...installing: gmp-6.1.2-h6c8ec71_1 ...installing: graphite2-1.3.12-h23475e2_2 ...installing: icu-58.2-h9c2bf20_1 ...installing: jbig-2.1-hdba287a_0 ...installing: jpeg-9b-h024ee3a_2 ...installing: libffi-3.2.1-hd88cf55_4 ...installing: libsodium-1.0.16-h1bed415_0 ...installing: libtool-2.4.6-h544aabb_3 ...installing: libuuid-1.0.3-h1bed415_2 ...installing: libxcb-1.13-h1bed415_1 ...installing: lzo-2.10-h49e0be7_2 ...installing: mkl-2019.0-118 ...tar: lib/libmkl_vml_avx512.so: Wrote only 1536 of 10240 bytestar: lib/libmkl_vml_avx512.so: Cannot utime: Read-only file systemtar: lib/libmkl_vml_avx2.so: Cannot open: Read-only file systemtar: lib/libmkl_vml_avx.so: Cannot open: Read-only file systemtar: lib/libmkl_vml_avx512_mic.so: Cannot open: Read-only file systemtar: lib/libmkl_sequential.so: Cannot open: Read-only file systemtar: lib/libmkl_gnu_thread.so: Cannot open: Read-only file systemtar: lib/libmkl_tbb_thread.so: Cannot open: Read-only file systemtar: lib/libmkl_pgi_thread.so: Cannot open: Read-only file systemtar: lib/libmkl_intel_thread.so: Cannot open: Read-only file systemtar: lib/libmkl_def.so: Cannot open: Read-only file systemtar: lib/libmkl_mc.so: Cannot open: Read-only file systemtar: lib/libmkl_mc3.so: Cannot open: Read-only file systemtar: lib/libmkl_avx.so: Cannot open: Read-only file systemtar: lib/libmkl_avx2.so: Cannot open: Read-only file systemtar: lib/libmkl_avx512.so: Cannot open: Read-only file systemtar: lib/libmkl_core.so: Cannot open: Read-only file systemtar: lib/libmkl_avx512_mic.so: Cannot open: Read-only file systemtar: Exiting with failure status due to previous errors

Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>