我是 Ubuntu 的第一个用户。我在 wmware 中安装 Ubuntu 失败,所以我在微软应用商店安装了 Ubuntu 应用程序,一切都很好。但是,当我插入关闭或暂停命令来关闭我的 ubuntu 电源时,我不断收到“系统尚未作为初始化系统(PID 1)启动的系统”。无法操作”错误消息。
我尝试通过此链接(https://blog.jayway.com/2017/04/19/running-docker-on-bash-on-windows/)使用 docker,但在多次进入第 2 进程后失败. 我不确定我的失败是因为安装了 docker 收费箱而不是正常的收费箱。(我的电脑只是 windows 10。不是 windows pro)
我想我必须尝试其他的东西。如果你不介意我问,我怎么能解决这个问题?
(还有一个。如果我只是单击右侧顶部的“X”按钮,与使用“halt”或“shutdown”命令关闭 Ubuntu 有什么不同?
谢谢
我使用 git-bash 在 github 中克隆了我的旧 androidsutio 项目之一。我在加载项目时遇到了 Gradle Sync 问题。所以我什至无法在android studio项目中看到我的java和src文件。(该项目被完美克隆。我能够看到所有文件都在那里)。我认为问题出在非 ASCII 的项目路径上,但我不太确定。因为路径是“C:\Users\absin\AndroidStudioProjects\projectname”。我的电脑设置为使用韩语,但是路径上没有韩语!你能告诉我我做错了什么吗?先感谢您。
*我以前在构建项目时使用 android 3.0,现在我使用的是 android 3.5
这是我的应用程序 gradle 代码
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.absin.firebasebus"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:recyclerview-v7:26.+'
implementation 'com.github.zagum:Android-SwitchIcon:1.3.8'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
//noinspection GradleCompatible …Run Code Online (Sandbox Code Playgroud)