A story I was addicted to before building a Ruby and Rails environment using Ubuntu (20.04.1 LTS)

Introduction

2 months since I started using Ubuntu I'm a super beginner for 3 months since I started studying Ruby on Rails. (As of December 31, 2020) This is my first post, so please be kind to me> <

environment

Referenced site

Where I was addicted

The following commands described on the above site

sudo apt install build-essential -y

When you run

'Ubuntu 20.04.1 _Focal Fossa_ - Release amd64(20200808.1)'Drive the disc labeled'/cdrom/'Put in[Enter]Press the key

If you do not get out of, then restart terminal and execute the above command again,

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

It is a story that I got locked and could not do anything.

Cause

It is OK if you manually delete the locked "/ var/lib/dpkg/lock-frontend", but you can automatically delete it with the "sudo apt auto remove" command. Because there was, command execution But,

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

Repeat ... Calm down and try rebooting for the time being.

After that, sudo apt autoremove itself was able to run without any problems, Problem sudo apt install build-essential -y

The same CDROM request occurs again in the part of. This time, UBUNTU itself was installed from USB, so there is no CDROM! So, the result of searching for a solution is as follows

Workaround

Located in /etc/apt/sources.list

# deb cdrom:[Ubuntu 20.04.1 _Focal Fossa_ - Release amd64(20200808.1)]/ focal main restricted

After deleting and restarting, execute the above command again without any problem. I was able to do it!

For some reason, I was addicted to it for about an hour, so I hope it will be helpful for those who are addicted to the same task.

Recommended Posts

A story I was addicted to before building a Ruby and Rails environment using Ubuntu (20.04.1 LTS)
I was a little addicted to running old Ruby environment and old Rails
A story I was addicted to in Rails validation settings
[Circle CI] A story I was addicted to at Start Building
Create a development environment for Ruby 3.0.0 and Rails 6.1.0 on Ubuntu 20.04.1 LTS
A story I was addicted to when testing the API using MockMVC
What I was addicted to while using rspec on rails
Building a Deep Learning environment (Ubuntu 20.04 LTS)
[Ruby] Building a Ruby development environment on Ubuntu
[Rails] I was addicted to the nginx settings when using Action Cable.
How to build a Ruby on Rails environment using Docker (for Docker beginners)
Problems I was addicted to when building the digdag environment with docker
I was a little addicted to ssh connection from mac to linux (ubuntu)
I was addicted to using RXTX on Sierra
A story I was addicted to when getting a key that was automatically tried on MyBatis
Difficulties in building a Ruby on Rails environment (Windows 10) (SQLite3)
I was addicted to setting default_url_options with Rails devise introduction
I tried using Hotwire to make Rails 6.1 scaffold a SPA
How to set and describe environment variables using Rails zsh
[Rails 6.0, Docker] I tried to summarize the Docker environment construction and commands necessary to create a portfolio
I was addicted to using Java's Stream API in Scala
[Rails] I tried to implement "Like function" using rails and js
A story I was addicted to with implicit type conversion of ActiveRecord during unit testing
The story I was addicted to when setting up STS
A story of frustration trying to create a penetration environment on Ubuntu 20.04
I want to add a browsing function with ruby on rails
I get a Ruby version error when I try to start Rails.
What I was addicted to when implementing google authentication with rails
I tried to build a simple application using Dockder + Rails Scaffold
Creating a dual boot environment for Ubuntu Server 20.04.1 LTS and Windows 10
Steps to build a Ruby on Rails development environment with Vagrant
I was addicted to starting sbt
A story that I was addicted to twice with the automatic startup setting of Tomcat 8 on CentOS 8
How to operate IGV using socket communication, and the story of making a Ruby Gem using that method
I want to download a file on the Internet using Ruby and save it locally (with caution)
I built a rails environment with docker and mysql, but I got stuck
How to create a query using variables in GraphQL [Using Ruby on Rails]
I was addicted to a simple test of Jedis (Java-> Redis library)
Minimal steps to set up a Ruby environment with rbenv on Ubuntu 20.04
[Docker] How to create a virtual environment for Rails and Nuxt.js apps
How to build a Ruby on Rails development environment with Docker (Rails 6.x)
[CircleCI] I was addicted to the automatic test of CircleCI (rails + mysql) [Memo]
A story that was embarrassing to give anison file to the production environment
How to build a Ruby on Rails development environment with Docker (Rails 5.x)
Template: Build a Ruby / Rails development environment with a Docker container (Ubuntu version)
A story addicted to JDBC Template placeholders
Building Rails 6 and PostgreSQL environment with Docker
Building a Kotlin development environment using SDKMAN
I was addicted to rewriting to @SpringApplicationConfiguration-> @SpringBootTest
I was addicted to the roll method
I was addicted to the Spring-Batch test
[First environment construction] I tried to create a Rails 6 + MySQL 8.0 + Docker environment on Windows 10.
A story when I tried to make a video by linking Processing and Resolume
I want to be able to read a file using refile with administrate [rails6]
A memo to simply create a form using only HTML and CSS in Rails 6
I was a little addicted to the S3 Checksum comparison, so I made a note.
A memorandum when building an environment with Ruby3.0 x Rails6.1 x Docker x CentOS Stream
SpringSecurity I was addicted to trying to log in with a hashed password (solved)
A story that I was really into when I did triple DES with ruby
What is a Ruby module?
About Ruby product operator (&) and sum operator (|)
What is a Ruby 2D array?
If it is Ruby, it is efficient to make it a method and stock the processing.
A story that separates business logic and model
[Ruby] A program that uses search and each_with_index
A story about a very useful Ruby Struct class
A story about Apache Wicket and atomic design
Ruby and Gem
What is a safety reference operator (&.) Using Ruby ampersand?
What is the difference between a class and a struct? ?? ??
[Ruby] I made a crawler with anemone and nokogiri.
A rough note about Ruby arrays and hash objects
A story I was addicted to before building a Ruby and Rails environment using Ubuntu (20.04.1 LTS)
A story addicted to EntityNotFoundException of getOne of JpaRepository