Friday, November 24, 2023

sudo apt-update throwing "connection timed out error"

 If you face this "connection timed out error"

$ sudo apt update 
  Could not connect to in.archive.ubuntu.com:80 (*2403:8940:ffff::f*), connection timed out Could not connect to in.archive.ubuntu.com:80 (103.97.84.254), connection timed out
Err:8 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease
  Unable to connect to in.archive.ubuntu.com:http:
Err:9 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
  Unable to connect to in.archive.ubuntu.com:http:
------------------------------------------------------------------------
 
1)sudo nano /etc/apt/sources.list
2) replace all http://**xx**.archive.ubuntu.com/ubuntu... to http://archive.ubuntu.com/ubuntu ...
 
https://askubuntu.com/questions/1198621/apt-get-cannot-connect-to-ubuntu-archives  
 

Wednesday, November 22, 2023

Create a bootable USB stick on Ubuntu

 

Download the Ubuntu to your system

  1. Insert your USB stick (select ‘Do nothing’ if prompted by Ubuntu)
  2. On Ubuntu 18.04 and later, use the bottom left icon to open ‘Show Applications’
  3. In older versions of Ubuntu, use the top left icon to open the dash
  4. Use the search field to look for Startup Disk Creator
  5. Select Startup Disk Creator from the results to launch the application

REFERENCES:

https://ubuntu.com/tutorials/create-a-usb-stick-on-ubuntu#3-launch-startup-disk-creator

Saturday, November 11, 2023

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

 

See the current value of max-old-space-size (in MB)

 

node -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))'

 

 

That said, to increase the memory, in the terminal where you run your Node.js process:

 export NODE_OPTIONS="--max-old-space-size=8192"
 
Reference 
https://stackoverflow.com/questions/53230823/fatal-error-ineffective-mark-compacts-near-heap-limit-allocation-failed-javas