当前位置: 首页 > news >正文

北京做网站男生工资网站建设的描述

北京做网站男生工资,网站建设的描述,wordpress app制作教程,设计方案评审Ubuntu focal是20.04 #xff0c;jammy版本是22.04#xff0c;本次的目的就是将FreeBSD jail子系统里的Ubuntu 从20.04升级到22.04 。这个focal 子系统是通过cbsd克隆得到的。使用CBSD克隆复制Ubuntu jail子系统环境-CSDN博客 do-release-upgrade升级没成功#xff0c;用de…Ubuntu focal是20.04 jammy版本是22.04本次的目的就是将FreeBSD jail子系统里的Ubuntu 从20.04升级到22.04 。这个focal 子系统是通过cbsd克隆得到的。使用CBSD克隆复制Ubuntu jail子系统环境-CSDN博客 do-release-upgrade升级没成功用debootstrap重装升级成功  说明有三个系统FreeBSD宿主机FreeBSD jail子系统 Ubuntu jail 子系统 安装好后可以从宿主机进入FreeBSD或Ubuntu jail子系统。在FreeBSD jail子系统里可以安装多个Ubuntu jail子系统并进入该子系统。 Ubuntu jail子系统里升级focal到jammy 使用do-release-upgrade升级失败 参考Install Ubuntu 22.04 Jammy in FreeBSD Jail | The FreeBSD Forums 在FreeBSD宿主机进入Ubuntu jail 子系统使用命令 jexec focal_to_jammy chroot /compat/ubuntu /bin/bash子系统是以前克隆的focal版本依次执行升级命令  apt install update-manager-core do-release-upgrade -d 没升级成功。 用-d选项的话没有错误信息去掉-d选项有报错信息见后面调试部分。最终没有用这种方法升级成功。 使用debootstrap升级 使用cbsd jlogin focal_to_jammy 进入FreeBSD jail子系统这时候是处于FreeBSD系统下有pkg指令所以 先pkg安装debootstrap pkg install debootstrap 执行debootstrap 下载jammy debootstrap jammy /compat/jammy 这样FreeBSD jail子系统里的操作就结束了后面就是进入jammy jail子系统进行操作了。 进入jammy jail子系统 从FreeBSD jail子系统执行chroot进入jammy子系统 focal_to_jammy:/root[9:37] # chroot /compat/jammy/ /bin/bash groups: cannot find name for group ID 0 groups: cannot find name for group ID 5 I have no name!focal_to_jammy:/# 如果顺利到了这一步就可以结束了但是 发现这个jammy子系统里又没有apt 怎么老碰到这个问题   debootstrap安装jammy时的输出有apt这个包啊 I: Retrieving apt 2.4.5 I: Validating apt 2.4.5   I: Extracting base-files... I: Extracting base-passwd... I: Extracting bash... 发现确实没有解开apt的包 第二次使用--includeapt选项 debootstrap --includeapt jammy /compat/jammy I: Validating adduser 3.118ubuntu5 I: Validating apt 2.4.5 I: Validating apt-utils 2.4.5   还是没有Extracting解开apt 包。话说debootstrap就这么节俭吗 连个apt包都不给 还是说只有FreeBSD下的这个debootstrap不给  看看jammy里的/usr/bin 目录里面就是没有apt jammy jail子系统里手工安装apt 以前手工安装apt会碰到依赖库的问题操作很繁琐这回找到了一个最方便的方法 dpkg --force-depends -Ei /var/cache/apt/archives/*.deb jammy jail子系统里所有的deb包放在/var/cache/apt/archives目录 只要使用这一条命令就能装好apt包使用命令 dpkg --force-depends -Ei /var/cache/apt/archives/*.deb 过程中问到键盘设置啥的 还有pam的配置改变要不要覆盖 One or more of the files                                                  │   │ /etc/pam.d/common-{auth,account,password,session} have been locally       │   │ modified.  Please indicate whether these local changes should be          │   │ overridden using the system-provided configuration.  If you decline this  │   │ option, you will need to manage your systems authentication              │   │ configuration by hand.                                                    │   │                                                                           │   │ Override local changes to /etc/pam.d/common-*?                            │   │                                                                           │   │                    Yes                       No       因为是新系统本地没啥所以选择了Yes覆盖 后面还有设置时区shanghai 等 安装完成后终于有了APT 但是刚开始使用apt会报错 apt update 报错问题解决 apt update Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB] 0% [Working]/usr/bin/apt-key: 95: cannot create /dev/null: Permission denied /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied E: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease   gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed Reading package lists... Done W: GPG error: http://archive.ubuntu.com/ubuntu jammy InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed E: The repository http://archive.ubuntu.com/ubuntu jammy InRelease is not signed. N: Updating from such a repository cant be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  看里面讲到 /dev/null: Permission denied就给它666权限 执行chmod 666 /dev/null   将/dev/null设为666  chmod 666 /dev/null 然后update 搞定但是upgrade报错 apt upgrade Reading package lists... Done Building dependency tree... Done You might want to run apt --fix-broken install to correct these. The following packages have unmet dependencies:  dash : Depends: dpkg ( 1.19.1) but it is not installed  grep : Depends: dpkg ( 1.15.4) but it is not installed or                  install-info but it is not installed  gzip : Depends: dpkg ( 1.15.4) but it is not installed or                  install-info but it is not installed  perl-base : PreDepends: dpkg ( 1.17.17) but it is not installed  python3-minimal : Depends: dpkg ( 1.13.20) but it is not installed  readline-common : Depends: dpkg ( 1.15.4) but it is not installed or                             install-info but it is not installed E: Unmet dependencies. Try apt --fix-broken install with no packages (or specify a solution). 尝试apt --fix-broken install修复apt upgrade报错问题 按照报错提示输入 apt --fix-broken install 修复完成apt install wget 成功 现在看看版本 lsb_release -a lsb_release -a No LSB modules are available. Distributor ID:    Ubuntu Description:    Ubuntu 22.04 LTS Release:    22.04 Codename:    jammy 成功升级到jammy版本 总结 本来想用下面两条执行将focal升级到jammy但是没有成功。 apt install update-manager-core ​ do-release-upgrade -d 最终还是使用了debootstrap 老办法升级成功。 debootstrap安装jammy ​pkg install debootstrapdebootstrap jammy /compat/jammychroot /compat/jammy/ /bin/bash chmod 666 /dev/nulldpkg --force-depends -Ei /var/cache/apt/archives/*.debapt updateapt --fix-broken installapt upgrade# 看版本lsb_release -a 调试 do-release-upgrade -d提示set Promptnorma do-release-upgrade -d Checking for a new Ubuntu release There is no development version of an LTS available. To upgrade to the latest non-LTS development release  set Promptnormal in /etc/update-manager/release-upgrades. 在/etc/update-manager/release-upgrades文件里将Promptlts修改成Promptnormal 结果执行后没什么反应 rootfocal_to_jammy:/# do-release-upgrade -d Checking for a new Ubuntu release Upgrades to the development release are only available from the latest supported release.将do-release-upgrade -d的-d去掉后提示 do-release-upgrade Checking for a new Ubuntu release Get:1 Upgrade tool signature [833 B] Get:2 Upgrade tool [1270 kB] Fetched 1271 kB in 0s (0 B/s) authenticate jammy.tar.gz against jammy.tar.gz.gpg extracting jammy.tar.gzReading cacheChecking package managerA fatal error occurred Please report this as a bug and include the files /var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in your report. The upgrade has aborted. Your original sources.list was saved in /etc/apt/sources.list.distUpgrade. Traceback (most recent call last): File /tmp/ubuntu-release-upgrader-fdy6hyrf/jammy, line 8, in module sys.exit(main()) File /tmp/ubuntu-release-upgrader-fdy6hyrf/DistUpgrade/DistUpgradeMain.py, line 241, in main if app.run(): File /tmp/ubuntu-release-upgrader-fdy6hyrf/DistUpgrade/DistUpgradeController.py, line 2042, in run return self.fullUpgrade() File /tmp/ubuntu-release-upgrader-fdy6hyrf/DistUpgrade/DistUpgradeController.py, line 1807, in fullUpgrade if not self.prepare(): File /tmp/ubuntu-release-upgrader-fdy6hyrf/DistUpgrade/DistUpgradeController.py, line 414, in prepare self._sshMagic() File /tmp/ubuntu-release-upgrader-fdy6hyrf/DistUpgrade/DistUpgradeController.py, line 273, in _sshMagic is_child_of_process_name(sshd)): File /tmp/ubuntu-release-upgrader-fdy6hyrf/DistUpgrade/utils.py, line 118, in is_child_of_process_name with open(stat_file) as stat_f: FileNotFoundError: [Errno 2] No such file or directory: /proc/35020/stat 发现source.list文件只有一行不知道是否这个原因 /etc/apt# cat sources.list deb http://archive.ubuntu.com/ubuntu focal main 添加了清华源问题依旧。查看报错发现/proc下没有东西且ps报错 在ps -aux的时候报错Error, do this: mount -t proc proc /proc ps -aux Error, do this: mount -t proc proc /proc 按照提示mount -t proc proc /proc  结果报错 mount -t proc proc /proc mount: /proc: permission denied. rootfocal_to_jammy:/# mount mount: failed to read mtab: No such file or directory rootfocal_to_jammy:/# df df: cannot read table of mounted file systems: No such file or directory 在/etc/fstab里加上配置 devfs      /compat/linux/dev      devfs      rw,late                    0  0 tmpfs      /compat/linux/dev/shm  tmpfs      rw,late,size1g,mode1777  0  0 fdescfs    /compat/linux/dev/fd   fdescfs    rw,late,linrdlnk           0  0 linprocfs  /compat/linux/proc     linprocfs  rw,late                    0  0 linsysfs   /compat/linux/sys      linsysfs   rw,late                    0  0 问题依旧。 这样在FreeBSD的jail里想要focal升级到jammy Ubuntu的实验失败告终。
http://www.hkea.cn/news/14261422/

相关文章:

  • 网站开发模板免费下载域名多少钱一年
  • 电子商务网站推广计划访问网站需要账号密码
  • 深圳网站建设php推广策略有哪些方法
  • dede新手做网站多久网站建设公司公司我我提供一个平台
  • phpmysql网站开发实例装修公司工装公司
  • 怎么用APdiv做网站导航栏网页平台制作
  • 电子商务安全问题 网站权限WordPress 云 memcache
  • 做php门户网站那个系统好图书馆网站建设公司
  • .net开发网站怎么样无锡网站制作
  • 建立自己网站免费八大营销模式有哪几种
  • 网站建设用什么视频播放器wordpress后台经常504
  • 兴县做网站的公司wordpress首页显示一张图片
  • iis发布网站无法访问知名的企业网站建设
  • 濮阳网站制作网站创建方案论文
  • 免费网站浏览器东营网站建设价格
  • 收费的网站如何免费网站标题做参数
  • html做网站的原则做阿里巴巴网站需要多少钱
  • 怎么通过淘宝优惠券做网站赚钱外贸网站开发推荐
  • 电子商务网站开发目的和意义做网站用的什么服务器
  • 当当网网站建设需求分析wordpress可以做微博
  • 深圳微商城网站制作价格wordpress防止文章被采集
  • 网站建设合同英文模板下载wordpress 添加表格
  • 江门网页建站模板58同城招聘网 找工作
  • 广西学校网站建设网站建设如何为企业电商化转型赋能
  • 海南专业网站建设网站设计线框图
  • 百度seo站长网站遇到攻击时应该怎么做
  • 网站的要求大连手机自适应网站建设电话
  • 建设网站赚钱吗热点新闻素材
  • 营销网站制作公司创建全国文明城市的意义
  • 做安卓开发要去看哪些网站艺术字体设计网